clock/clockui/clockviewmanager/inc/clockviewmanager.h
changeset 18 c198609911f9
child 26 a949c2543c15
equal deleted inserted replaced
0:f979ecb2b13e 18:c198609911f9
       
     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 * Header file for class ClockViewManager.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CLOCKVIEWMANAGER_H
       
    20 #define CLOCKVIEWMANAGER_H
       
    21 
       
    22 // System includes
       
    23 #include <QObject>
       
    24 
       
    25 // User includes
       
    26 #include "clockviewmanagerdefines.h"
       
    27 #include "clockdatatypes.h"
       
    28 
       
    29 // Forward declarations
       
    30 class ClockAppControllerIf;
       
    31 class ClockMainView;
       
    32 class ClockWorldView;
       
    33 
       
    34 class ClockViewManager : public QObject
       
    35 {
       
    36 	Q_OBJECT
       
    37 
       
    38 public:
       
    39 	CLOCKVIEWMANAGER_EXPORT ClockViewManager(
       
    40 			ClockAppControllerIf &controllerIf, QObject *parent = 0);
       
    41 	CLOCKVIEWMANAGER_EXPORT ~ClockViewManager();
       
    42 
       
    43 public:
       
    44 	CLOCKVIEWMANAGER_EXPORT void showView(ClockViews view);
       
    45 
       
    46 private:
       
    47 	void loadViews();
       
    48 	void loadMainView();
       
    49 	void loadWorldClockView();
       
    50 
       
    51 private:
       
    52 	ClockAppControllerIf &mAppControllerIf;
       
    53 	ClockMainView *mMainView;
       
    54 	ClockWorldView *mWorldClockView;
       
    55 
       
    56 private:
       
    57 	Q_DISABLE_COPY(ClockViewManager)
       
    58 };
       
    59 
       
    60 #endif // CLOCKVIEWMANAGER_H
       
    61 
       
    62 // End of file	--Don't remove this.