diff -r 4697dfb2d7ad -r 238255e8b033 messagingapp/msgsettings/msgsettingsplugin.deprecated/inc/msgsettingsviewmanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingapp/msgsettings/msgsettingsplugin.deprecated/inc/msgsettingsviewmanager.h Fri Apr 16 14:56:15 2010 +0300 @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description:This is the manager class for managing multiple views + * + */ + +#ifndef MSGSETTINGSVIEWMANAGER_H +#define MSGSETTINGSVIEWMANAGER_H + +#include +class MsgAdvancedSettingsView; +class MessageCenterView; +class MsgSMSCenterView; +class HbAction; +class HbView; + +/** + * View manager for the messaging application. This is a singleton + * class. Creates and activates the specified view. + */ +class MsgSettingsViewManager : public QObject +{ +Q_OBJECT + +public: + /** + * Get an instance of the view manager + */ + MsgSettingsViewManager(QObject* parent = 0); + + /** + * Destructor + */ + virtual ~MsgSettingsViewManager(); + + /** + * open the advanced settings view + */ + void openAdvancedView(); + + /** + * open messageCenterView + * @param mode display either in addition or edit mode + * @example 0 - displays in add mode + * 1 - displays in edit mode + */ + void openMessageCenterView(int mode); + +private slots: + void closeAdvancedSettingsView(); + void openSmsCenterView(int mode); + void closeSMSCCenterView(); + +private: + + /** + * List View. + * Own. + */ + MsgAdvancedSettingsView* mAdvancedSettingsView; + + /** + * + */ + MsgSMSCenterView* mSMSCenterView; + + /** + * Current active view. + * Now owned. + */ + MessageCenterView* mMessageCenterView; + + HbAction* mBackAction; + HbAction* mBackAction2; + + HbView * mCurrentView; + +}; + +#endif /* MSGSETTINGSVIEWMANAGER_H */