phoneuis/ussdeditor/inc/ussdcomms.h
changeset 36 2eacb6118286
parent 30 ebdbd102c78a
child 37 ba76fc04e6c2
equal deleted inserted replaced
30:ebdbd102c78a 36:2eacb6118286
     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 USSDCOMMS_H
       
    20 #define USSDCOMMS_H
       
    21 
       
    22 #include <QObject>
       
    23 
       
    24 class CPhCltUssdInt;
       
    25 
       
    26 class CUssdComms: public QObject
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31     CUssdComms(QObject* parent);
       
    32     ~CUssdComms();
       
    33 
       
    34 public slots:
       
    35     void appStarting();
       
    36     void appTerminating();
       
    37     void appToBackground();
       
    38     void appToForeground();
       
    39     void informExitReason(int aExitReason);
       
    40 
       
    41 public:
       
    42     int send( const QString& message );
       
    43     void cancel();
       
    44     int errorCode();
       
    45 
       
    46 private: // Data
       
    47 
       
    48     /** USSD server client api */
       
    49     CPhCltUssdInt *mUssd;
       
    50 
       
    51     /** error code */
       
    52     int mErrorCode;
       
    53 };
       
    54 
       
    55 #endif // USSDCOMMS_H
       
    56 
       
    57 // End of file