17 */ |
17 */ |
18 |
18 |
19 #ifndef CFUNCOMMANDHANDLER_H |
19 #ifndef CFUNCOMMANDHANDLER_H |
20 #define CFUNCOMMANDHANDLER_H |
20 #define CFUNCOMMANDHANDLER_H |
21 |
21 |
22 #include "atmisccmdplugin.h" |
22 #include <e32property.h> |
|
23 |
|
24 #include "atcmdasyncbase.h" |
23 |
25 |
24 const TInt KGeneralProfileId = 0; |
26 const TInt KGeneralProfileId = 0; |
25 const TInt KOfflineProfileId = 5; |
27 const TInt KOfflineProfileId = 5; |
26 |
28 |
27 class MProfileEngine; |
29 class MProfileEngine; |
37 |
39 |
38 private: // methods from CActive |
40 private: // methods from CActive |
39 virtual void RunL(); |
41 virtual void RunL(); |
40 virtual void DoCancel(); |
42 virtual void DoCancel(); |
41 // RunError not needed as RunL does not leave |
43 // RunError not needed as RunL does not leave |
42 |
44 |
43 private: // methods from CATCmdAsyncBase |
45 private: // method from CATCmdAsyncBase::MATCmdBase |
44 virtual void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded ); |
46 virtual void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded ); |
45 virtual void HandleCommandCancel(); |
|
46 |
47 |
47 private: |
48 private: |
48 CCFUNCommandHandler(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone); |
49 CCFUNCommandHandler(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone); |
49 void ConstructL(); |
50 void ConstructL(); |
50 |
51 |
51 TInt ActivateProfile(TInt aFunc, TInt aReset); |
52 TInt ActivateProfile(TInt aFunc); |
52 TInt SetActiveProfile(TInt aProfileId); |
53 TInt SetActiveProfile(TInt aProfileId); |
53 TInt RestartDevice(); |
54 TInt RestartDevice(); |
54 |
55 |
55 private: |
56 private: |
56 RBuf8 iReply; |
57 RBuf8 iReply; |
57 |
58 |
58 MProfileEngine* iProfileEngine; |
59 MProfileEngine* iProfileEngine; |
|
60 RProperty iProperty; |
|
61 TInt iExpectedState; |
|
62 TInt iReset; // default 0 - do not reset the MT before setting it to <fun> power level |
59 }; |
63 }; |
60 |
64 |
61 #endif /* CFUNCOMMANDHANDLER_H */ |
65 #endif /* CFUNCOMMANDHANDLER_H */ |