cbsatplugin/atmisccmdplugin/inc/telephonywrapper.h
branchRCL_3
changeset 72 4b59561a31c0
parent 64 1934667b0e2b
equal deleted inserted replaced
64:1934667b0e2b 72:4b59561a31c0
     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  * Initial Contributors:
       
     9  * Nokia Corporation - initial contribution.
       
    10  *
       
    11  * Contributors:
       
    12  * 
       
    13  * Description :
       
    14  * 
       
    15  * CTelephonyWrapper class declaration for wrapping CTelephony::GetPhoneId 
       
    16  * 
       
    17  */
       
    18 
       
    19 #ifndef TELEPHONYWRAPPER_H
       
    20 #define TELEPHONYWRAPPER_H
       
    21 
       
    22 #include <etel3rdparty.h>
       
    23 
       
    24 /**
       
    25  *  Synchronous wrapper for CTelephony::GetPhoneId 
       
    26  */
       
    27 NONSHARABLE_CLASS (CTelephonyWrapper) : public CActive   
       
    28     {     
       
    29 public:
       
    30     static CTelephonyWrapper* NewL();         
       
    31     virtual ~CTelephonyWrapper();     
       
    32 
       
    33     TInt SynchronousGetPhoneId(); 
       
    34 
       
    35     const TDesC8& GetPhoneModel();
       
    36     const TDesC8& GetPhoneSerialNum();
       
    37     const TDesC8& GetPhoneManufacturer();
       
    38 
       
    39 private: // From CActive
       
    40     virtual void RunL();
       
    41     virtual void DoCancel();
       
    42     
       
    43 private: // Constructors
       
    44     CTelephonyWrapper();
       
    45     void ConstructL();
       
    46     
       
    47 private:                
       
    48     CActiveSchedulerWait        iWaiter;
       
    49     
       
    50     CTelephony*                 iTelephony;
       
    51     CTelephony::TPhoneIdV1      iPhoneIdV1;
       
    52     CTelephony::TPhoneIdV1Pckg  iPhoneIdV1Pckg;    
       
    53     
       
    54     TBufC8<CTelephony::KPhoneModelIdSize> iModel;
       
    55     TBufC8<CTelephony::KPhoneSerialNumberSize> iSn;
       
    56     TBufC8<CTelephony::KPhoneManufacturerIdSize> iManufacturer;
       
    57     
       
    58     };
       
    59 
       
    60 #endif /* TELEPHONYWRAPPER_H */