phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetsathandler.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 40 bab96b7ed1a4
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     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 INFOWIDGETSATHANDLER_H_
       
    19 #define INFOWIDGETSATHANDLER_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <rsatservice.h>
       
    23 
       
    24 
       
    25 class InfoWidgetSatHandlerPrivate;
       
    26 
       
    27 class InfoWidgetSatHandler: public QObject
       
    28     {
       
    29     Q_OBJECT
       
    30     
       
    31 public:    
       
    32     InfoWidgetSatHandler(QObject *parent = NULL);
       
    33     ~InfoWidgetSatHandler();    
       
    34     
       
    35     void connect(bool connect);
       
    36         
       
    37     const QString& satDisplayText() const; 
       
    38     void setSatDisplayText(const QString& displayText);
       
    39 
       
    40     void logCurrentInfo(); 
       
    41     
       
    42     void handleIdleModeTxtMessage( int idleResult );
       
    43     void handleSatError( int operation, int errorCode );
       
    44 
       
    45 signals: 
       
    46     void handleMessage( int message );
       
    47     void handleError( int operation, int errorCode );
       
    48 
       
    49     
       
    50 private: 
       
    51     QString m_displayText;
       
    52     
       
    53     int m_connected;
       
    54     
       
    55     InfoWidgetSatHandlerPrivate *d_ptr;
       
    56     RSatService m_satService;
       
    57     
       
    58     }; 
       
    59 
       
    60 #endif /* INFOWIDGETSATHANDLER_H_ */
       
    61 
       
    62