usbclasses/usbphoneasmodem/classimplementation/atplugin/inc/pamengine.h
changeset 34 7858bc6ead78
parent 31 dfdd8240f7c8
child 35 9d8b04ca6939
equal deleted inserted replaced
31:dfdd8240f7c8 34:7858bc6ead78
     1 // Copyright (c) 2009 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 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // class definition for phone as modem at extension plugin
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef PAMENGINE_H
       
    19 #define PAMENGINE_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <cntdef.h>
       
    25 #include <cntdbobs.h>
       
    26 #include <badesca.h>
       
    27 #include <etel3rdparty.h>
       
    28 #include <rmmcustomapi.h>
       
    29 #include <etelmm.h>
       
    30 #include <mmtsy_names.h>
       
    31 #include <cmmanager.h>
       
    32 #include <cmdestination.h>
       
    33 #include <cmconnectionmethod.h>
       
    34 #include <cmconnectionmethoddef.h>
       
    35 #include <cmpluginpacketdatadef.h>
       
    36 
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 
       
    40 // CLASS DECLARATION
       
    41 class CPamPlugin;
       
    42 /**
       
    43 *  CPamEngine
       
    44 */
       
    45 class CPamEngine : public CActive
       
    46 	{
       
    47 public: // Constructor, destructor
       
    48 	/**
       
    49 	* Two-phased contructor
       
    50 	* @param aOwner
       
    51 	* @return Instance of CPamEngine
       
    52 	*/
       
    53 	static CPamEngine* CPamEngine::NewL( CPamPlugin* aOwner );
       
    54 						   
       
    55 	/**
       
    56 	* Two-phased contructor
       
    57 	* @param aOwner
       
    58 	* @return Instance of CPamEngine
       
    59 	*/
       
    60 	static CPamEngine* NewLC( CPamPlugin* aOwner );
       
    61 
       
    62 
       
    63 	/**
       
    64 	* C++ Destructor
       
    65 	*/
       
    66 	~CPamEngine();
       
    67 
       
    68 
       
    69 	/**
       
    70 	* CPamEngine::ReadAccessPointTableL()
       
    71 	* @param aAccessPoint
       
    72 	* @param apArray 
       
    73 	*/
       
    74 	void ReadAccessPointTableL( TInt aAccessPoint, CDesC8ArrayFlat*& apArray );
       
    75 
       
    76 
       
    77 	/**
       
    78 	*  CPamEngine::ReadPacketServicetableL()
       
    79 	*/
       
    80 	void ReadPacketServicetableL( CMManager::TPacketDataApType  aAccessPointType, CDesC8ArrayFlat*& apArray );
       
    81 
       
    82 
       
    83 	/**
       
    84 	* Adds quotationmarks before and after string if not empty
       
    85 	*/
       
    86 	void AddQuotationmarks( const TDesC& aString, HBufC16*& aBuf );
       
    87 
       
    88 
       
    89 	/**
       
    90 	* Reads supported access points
       
    91 	*/
       
    92 	void SupportedAccessPoints( HBufC16*& aBuf );
       
    93 
       
    94 
       
    95 	/**
       
    96 	* Gets Service provider name
       
    97 	*/
       
    98 	void GetServiceProviderName();
       
    99 
       
   100 
       
   101 private: // from CActive
       
   102 	/**
       
   103 	* AO callback
       
   104 	*/    
       
   105    void RunL();
       
   106 
       
   107 	/**
       
   108 	* AO callback
       
   109 	*/    
       
   110    void DoCancel();
       
   111 
       
   112 
       
   113 private:
       
   114 	/**
       
   115 	* 2nd phase Constructor
       
   116 	*/
       
   117 	void ConstructL();
       
   118 
       
   119 	/**
       
   120 	* C++ Constructor
       
   121 	* @param aObserver
       
   122 	* @param aObserver
       
   123 	*/
       
   124 
       
   125 	CPamEngine( CPamPlugin* aOwner );
       
   126 
       
   127 private:
       
   128     enum TAccessPointType
       
   129     {
       
   130     EINTERNETACCESSPOINT = 0,
       
   131     EWAPACCESSPOINT,
       
   132     EBOTHACCESSPOINT
       
   133     };
       
   134 
       
   135 private: // Data
       
   136 	CTelephony::TNetworkNameV1 iNWName;
       
   137 	CTelephony* iTelephony;
       
   138 	CPamPlugin* iOwner;
       
   139 	};  
       
   140 	
       
   141    
       
   142 #endif // PAMENGINE_H
       
   143 
       
   144 // End of File
       
   145