activityfw/testapplications/newtestappset/acttestletter/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 letterwidget;
       
    27 
       
    28 class viewmanager : public HbMainWindow
       
    29 {
       
    30     Q_OBJECT
       
    31 public:
       
    32     viewmanager(HbApplication *hbapp);
       
    33     virtual ~viewmanager();
       
    34     void initialize();
       
    35 
       
    36 private:
       
    37     letterwidget *mBoldWidget; 
       
    38     letterwidget *mItalicWidget; 
       
    39     letterwidget *mUnderlineWidget;
       
    40     HbView *mBoldView;
       
    41     HbView *mItalicView;
       
    42     HbView *mUnderlineView;
       
    43 
       
    44 private slots:
       
    45     void toitalic();
       
    46     void tobold();
       
    47     void tounderline();
       
    48 
       
    49     void save();
       
    50     void del();
       
    51     void newStatus(bool status);
       
    52 
       
    53 public slots:
       
    54     void loadActivityData(Af::ActivationReason reason, const QString &name, QVariantHash parameter);
       
    55     
       
    56 signals:
       
    57     void statusChanged(bool status);
       
    58 
       
    59 public:
       
    60     void loadActivityData(const QVariant &data, bool background, bool startup);
       
    61     letterwidget* currentWidget();
       
    62 
       
    63 private:
       
    64     QObject *mActivityStorage;
       
    65     QObject *mActivaction;
       
    66     QString mStatename;
       
    67     QVariant mSaveVariant;
       
    68     HbApplication *mHbApp;
       
    69 };
       
    70 
       
    71 #endif /* VIEWMANAGER_H_ */