activityfw/testapplications/activitytestletter/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 class HbApplication;
       
    24 class letterwidget;
       
    25 
       
    26 class viewmanager : public HbMainWindow
       
    27 {
       
    28     Q_OBJECT
       
    29 public:
       
    30     viewmanager(HbApplication *hbapp);
       
    31     virtual ~viewmanager();
       
    32     void initialize();
       
    33 
       
    34 private:
       
    35     letterwidget *mBoldWidget; 
       
    36     letterwidget *mItalicWidget; 
       
    37     letterwidget *mUnderlineWidget;
       
    38     HbView *mBoldView;
       
    39     HbView *mItalicView;
       
    40     HbView *mUnderlineView;
       
    41 
       
    42 private slots:
       
    43     void toitalic();
       
    44     void tobold();
       
    45     void tounderline();
       
    46 
       
    47     void save();
       
    48     void del();
       
    49 
       
    50 public slots:
       
    51     void loadActivityData(const QString &name);
       
    52 
       
    53 public:
       
    54     void loadActivityData(const QVariant &data, bool startup);
       
    55     letterwidget* currentWidget();
       
    56 
       
    57 private:
       
    58     QObject *mActivityClient;
       
    59     QString mStatename;
       
    60     QVariant mSaveVariant;
       
    61     HbApplication *mHbApp;
       
    62 };
       
    63 
       
    64 #endif /* VIEWMANAGER_H_ */