cbsatplugin/atmisccmdplugin/inc/ussdreadmessageimpl.h
branchRCL_3
changeset 35 95674584745d
equal deleted inserted replaced
21:53b7818cd282 35:95674584745d
       
     1 /* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2  * All rights reserved.
       
     3  * This component and the accompanying materials are made available
       
     4  * under the terms of "Eclipse Public License v1.0"
       
     5  * which accompanies this distribution, and is available
       
     6  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7  * Initial Contributors:
       
     8  * Nokia Corporation - initial contribution.
       
     9  *
       
    10  * Contributors:
       
    11  * Description :
       
    12  *
       
    13  */
       
    14 
       
    15 #ifndef USSDREADMESSAGEIMPL_H
       
    16 #define USSDREADMESSAGEIMPL_H
       
    17 
       
    18 #include <etelmm.h>
       
    19 
       
    20 class MUSSDCallback;
       
    21 
       
    22 /**
       
    23  *  Class for receiving USSD data
       
    24  */
       
    25 NONSHARABLE_CLASS( CUSSDReadMessageImpl ) : public CActive
       
    26 {
       
    27 public:
       
    28     static CUSSDReadMessageImpl* NewL(MUSSDCallback* aCallback, RMobileUssdMessaging& aUssdSession);
       
    29     ~CUSSDReadMessageImpl();
       
    30 
       
    31     TInt ReadUSSDMessage(TDes8& aReceivedData, 
       
    32                                RMobileUssdMessaging::TMobileUssdAttributesV1& aUSDAttribute );
       
    33 
       
    34 private: // methods from CActive
       
    35     virtual void RunL();
       
    36     virtual void DoCancel();
       
    37     // RunError not needed as RunL does not leave
       
    38 
       
    39 private:
       
    40     CUSSDReadMessageImpl(MUSSDCallback* aCallback, 
       
    41                           RMobileUssdMessaging& aUSSDMessagingSession);
       
    42 private:
       
    43     MUSSDCallback* iCallback;
       
    44     RMobileUssdMessaging& iUssdSession;
       
    45     };
       
    46 
       
    47 #endif /* USSDREADMESSAGEIMPL_H */