messagingapp/msgsettings/msgsettingsplugin.deprecated/inc/msgsettingsviewmanager.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
child 79 2981cb3aa489
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
     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:This is the manager class for managing multiple views
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef MSGSETTINGSVIEWMANAGER_H
       
    19 #define MSGSETTINGSVIEWMANAGER_H
       
    20 
       
    21 #include <QObject>
       
    22 class MsgAdvancedSettingsView;
       
    23 class MessageCenterView;
       
    24 class MsgSMSCenterView;
       
    25 class HbAction;
       
    26 class HbView;
       
    27 
       
    28 /**
       
    29  * View manager for the messaging application. This is a singleton
       
    30  * class. Creates and activates the specified view.
       
    31  */
       
    32 class MsgSettingsViewManager : public QObject
       
    33 {
       
    34 Q_OBJECT
       
    35 
       
    36 public:
       
    37     /**
       
    38      * Get an instance of the view manager
       
    39      */
       
    40     MsgSettingsViewManager(QObject* parent = 0);
       
    41 
       
    42     /**
       
    43      * Destructor
       
    44      */
       
    45     virtual ~MsgSettingsViewManager();
       
    46 
       
    47     /**
       
    48      * open the advanced settings view
       
    49      */
       
    50     void openAdvancedView();
       
    51 
       
    52     /**
       
    53      * open messageCenterView
       
    54      * @param mode display either in addition or edit mode
       
    55      * @example 0 - displays in add mode
       
    56      * 			1 - displays in edit mode
       
    57      */
       
    58     void openMessageCenterView(int mode);
       
    59 
       
    60 private slots:
       
    61     void closeAdvancedSettingsView();
       
    62     void openSmsCenterView(int mode);
       
    63     void closeSMSCCenterView();
       
    64 
       
    65 private:
       
    66 
       
    67     /**
       
    68      * List View.
       
    69      * Own.
       
    70      */
       
    71     MsgAdvancedSettingsView* mAdvancedSettingsView;
       
    72 
       
    73     /**
       
    74      * 
       
    75      */
       
    76     MsgSMSCenterView* mSMSCenterView;
       
    77 
       
    78     /**
       
    79      * Current active view.
       
    80      * Now owned.
       
    81      */
       
    82     MessageCenterView* mMessageCenterView;
       
    83 
       
    84     HbAction* mBackAction;
       
    85     HbAction* mBackAction2;
       
    86 
       
    87     HbView * mCurrentView;
       
    88 
       
    89 };
       
    90 
       
    91 #endif /* MSGSETTINGSVIEWMANAGER_H */