phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetnetworkhandler.h
changeset 22 6bb1b21d2484
child 27 2f8f8080a020
equal deleted inserted replaced
21:92ab7f8d0eab 22:6bb1b21d2484
       
     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 
       
    18 #ifndef INFOWIDGETNETWORKHANDLER_H_
       
    19 #define INFOWIDGETNETWORKHANDLER_H_
       
    20 
       
    21 
       
    22 #include <QObject>
       
    23 #include <nwhandlingengine.h>
       
    24 
       
    25 class CNWSession; 
       
    26 
       
    27 class InfoWidgetNetworkHandler : public QObject, public MNWMessageObserver 
       
    28     {
       
    29     Q_OBJECT
       
    30     
       
    31 public:
       
    32     InfoWidgetNetworkHandler(QObject *parent = NULL);
       
    33     ~InfoWidgetNetworkHandler();    
       
    34     
       
    35     QString homeZoneTextTag() const; 
       
    36     int homeZoneIndicatorType() const; 
       
    37     
       
    38     QString mcnName() const; 
       
    39     int mcnIndicatorType() const; 
       
    40 
       
    41     void logCurrentInfo(); 
       
    42 
       
    43 public: // From MNWMessageObserver
       
    44     void HandleNetworkMessage(const TNWMessages aMessage);
       
    45     void HandleNetworkError(const TNWOperation aOperation, TInt aErrorCode);
       
    46     
       
    47 signals: 
       
    48     void networkDataChanged();
       
    49     void networkError(int operation, int errorCode);
       
    50     
       
    51 private:
       
    52     TNWInfo m_nwInfo;
       
    53     QScopedPointer<CNWSession> m_nwSession;
       
    54     }; 
       
    55 
       
    56 #endif /* INFOWIDGETNETWORKHANDLER_H_ */
       
    57 
       
    58