satui/satapp/inc/satappmainhandler.h
branchRCL_3
changeset 19 7d48bed6ce0c
equal deleted inserted replaced
18:594d59766373 19:7d48bed6ce0c
       
     1 /*
       
     2 * Copyright (c) 2010 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 */
       
    18 
       
    19 #ifndef SATAPPMAINHANDLER_H
       
    20 #define SATAPPMAINHANDLER_H
       
    21 
       
    22 #include <QObject>
       
    23 #include <QVariant>
       
    24 
       
    25 class HbMainWindow;
       
    26 class HbMessageBox;
       
    27 class SatAppServerDispatcher;
       
    28 class SatAppMenuProvider;
       
    29 class SatAppInputProvider;
       
    30 class SatAppToneProvider;
       
    31 class SatAppPopupProvider;
       
    32 class SatAppConfirmProvider;
       
    33 
       
    34 class SatAppMainHandler : public QObject
       
    35 {
       
    36     Q_OBJECT
       
    37 
       
    38 public:
       
    39     SatAppMainHandler(HbMainWindow &window, QObject *parent = 0);
       
    40     ~SatAppMainHandler();
       
    41     void showOfflineWarning();
       
    42     
       
    43 private:
       
    44     void initConnections();
       
    45     
       
    46 private slots:
       
    47     void updateActivity();
       
    48     void saveActivity();
       
    49 
       
    50 private:
       
    51     void removeActivity();
       
    52     bool isOffline();
       
    53 private: // data
       
    54 
       
    55     SatAppServerDispatcher* mServer;
       
    56     SatAppMenuProvider* mMenu;
       
    57     SatAppInputProvider* mInput;
       
    58     SatAppToneProvider* mTone;
       
    59     SatAppPopupProvider* mPopup;
       
    60     SatAppConfirmProvider *mConfirm;
       
    61     QVariantHash mActivity;
       
    62     
       
    63     HbMessageBox *mOfflineWarningDlg;
       
    64 };
       
    65 
       
    66 #endif // SATAPPMAINHANDLER_H