phoneplugins/infowidgetplugin/infowidget/inc/infowidgetsathandler.h
branchRCL_3
changeset 24 41a7f70b3818
equal deleted inserted replaced
23:40a3f856b14d 24:41a7f70b3818
       
     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 <QScopedPointer>
       
    23 #include <rsatservice.h>
       
    24 #include "infowidgetsathandler_p.h"
       
    25 
       
    26 // Class declaration
       
    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 handleIdleModeTxtMessage(int idleResult);
       
    41     void handleSatError(int operation, int errorCode);
       
    42 
       
    43 signals: 
       
    44     void handleMessage(int message);
       
    45     void handleError(int operation, int errorCode);
       
    46     
       
    47 private: 
       
    48     QScopedPointer<InfoWidgetSatHandlerPrivate> m_satHandlerPrivate;
       
    49     RSatService m_satService;
       
    50     QString m_displayText;
       
    51     
       
    52     bool m_connected;
       
    53     }; 
       
    54 
       
    55 #endif /* INFOWIDGETSATHANDLER_H_ */
       
    56 
       
    57