phoneuis/ussdeditor/inc/ussdcomms.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:31:11 +0300
changeset 27 2f8f8080a020
child 76 cfea66083b62
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*
*/

#ifndef USSDCOMMS_H
#define USSDCOMMS_H

#include <QObject>

class CPhCltUssdInt;

class CUssdComms: public QObject
{
    Q_OBJECT

public:
    CUssdComms(QObject* parent);
    ~CUssdComms();

public slots:
    void appStarting();
    void appTerminating();
    void appToBackground();
    void appToForeground();
    void informExitReason(int aExitReason);

public:
    int send( const QString& message );
    void cancel();
    int errorCode();

private: // Data

    /** USSD server client api */
    CPhCltUssdInt *mUssd;

    /** error code */
    int mErrorCode;
};

#endif // USSDCOMMS_H

// End of file