activityfw/testapplications/newtestappset/acttesttakeawhile/viewmanager.h
changeset 117 c63ee96dbe5f
equal deleted inserted replaced
115:3ab5c078b490 117:c63ee96dbe5f
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef VIEWMANAGER_H_
       
    18 #define VIEWMANAGER_H_
       
    19 
       
    20 #include <hbmainwindow.h>
       
    21 #include <hbview.h>
       
    22 #include <QVariant>
       
    23 #include <afactivities_global.h>
       
    24 
       
    25 class HbApplication;
       
    26 class QGraphicsGridLayout;
       
    27 class HbPushButton;
       
    28 class letterwidget;
       
    29 
       
    30 class viewmanager : public HbMainWindow
       
    31 {
       
    32     Q_OBJECT
       
    33 public:
       
    34     viewmanager();
       
    35     virtual ~viewmanager();
       
    36     void initialize();
       
    37     
       
    38 
       
    39 
       
    40 private slots:
       
    41 
       
    42     void save();
       
    43     void del();
       
    44 
       
    45 public slots:
       
    46     void loadActivityData(Af::ActivationReason reason, const QString &name, QVariantHash parameter);
       
    47 
       
    48 public:
       
    49     void loadActivityData(const QVariant &data);
       
    50 
       
    51 private:
       
    52 
       
    53     
       
    54     QObject *mActivityStorage;
       
    55     QObject *mActivaction;
       
    56     
       
    57     QVariant mSaveVariant;    
       
    58     letterwidget *mLw;
       
    59 };
       
    60 
       
    61 #endif /* VIEWMANAGER_H_ */