idlefw/plugins/shortcutplugin/inc/caiscutextsession.h
changeset 0 79c6a41cd166
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/idlefw/plugins/shortcutplugin/inc/caiscutextsession.h	Thu Dec 17 08:54:17 2009 +0200
@@ -0,0 +1,82 @@
+/*
+* Copyright (c) 2005-2006 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:  Shortcut plug-in xSP extension session class.
+*
+*/
+
+
+#ifndef CAISCUTEXTSESSION_H
+#define CAISCUTEXTSESSION_H
+
+#include <e32base.h>
+
+class MAiScutExtMessageHandler;
+
+/**
+ *  Server session class for xSP extensions.
+ *
+ *  Handles IPC between server and client. Commands and data are passed to
+ *  observer.
+ *
+ *  @since S60 v3.2
+ */
+class CAiScutExtSession : public CSession2
+    {
+    public:
+        /**
+         * Constructor
+         * @param aObserver Reference to observer
+         * @since S60 v3.2
+         */
+        CAiScutExtSession( MAiScutExtMessageHandler& aObserver );
+
+        /**
+         * Destructor
+         * @since S60 v3.2
+         */
+        ~CAiScutExtSession();
+
+    private: // From CSession2
+        void ServiceL( const RMessage2& aMessage );
+        void DispatchMessageL( const RMessage2& aMessage );
+
+    private: // New functions
+        void SetTargetDefinitionL( const RMessage2& aMessage );
+        void SetPopupTextL( const RMessage2& aMessage );
+        void ResetPopupTextL( const RMessage2& aMessage );
+        void SetIconL( const RMessage2& aMessage );
+        void ResetIconL( const RMessage2& aMessage );
+        void IsInShortcutsL( const RMessage2& aMessage );
+        void IssuePutInShortcutsL( const RMessage2& aMessage );
+
+        void PanicClient( const RMessage2& aMessage, TInt aPanicCode ) const;
+
+    private: // data
+
+        /**
+         * Reference to observer
+         * Ref.
+         */
+        MAiScutExtMessageHandler& iObserver;
+        
+        /**
+         * Target definition
+         * Own.
+         */
+        HBufC* iTargetDefinition;
+    };
+
+#endif // CAISCUTEXTSESSION_H
+
+// End of File.