--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cbsatplugin/atmisccmdplugin/inc/cfuncommandhandler.h Tue Apr 27 16:49:44 2010 +0300
@@ -0,0 +1,61 @@
+/*
+ * 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 :
+ *
+ * CCFUNCommandHandler class declaration for AT+CFUN command
+ *
+ */
+
+#ifndef CFUNCOMMANDHANDLER_H
+#define CFUNCOMMANDHANDLER_H
+
+#include "atmisccmdplugin.h"
+
+const TInt KGeneralProfileId = 0;
+const TInt KOfflineProfileId = 5;
+
+class MProfileEngine;
+
+/**
+ * AT+CFUN command handler implementation class
+ */
+NONSHARABLE_CLASS( CCFUNCommandHandler ) : public CATCmdAsyncBase
+ {
+public:
+ static CCFUNCommandHandler* NewL(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone);
+ ~CCFUNCommandHandler();
+
+private: // methods from CActive
+ virtual void RunL();
+ virtual void DoCancel();
+ // RunError not needed as RunL does not leave
+
+private: // methods from CATCmdAsyncBase
+ virtual void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded );
+ virtual void HandleCommandCancel();
+
+private:
+ CCFUNCommandHandler(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone);
+ void ConstructL();
+
+ TInt ActivateProfile(TInt aFunc, TInt aReset);
+ TInt SetActiveProfile(TInt aProfileId);
+ TInt RestartDevice();
+
+private:
+ RBuf8 iReply;
+
+ MProfileEngine* iProfileEngine;
+ };
+
+#endif /* CFUNCOMMANDHANDLER_H */