idlefw/plugins/shortcutplugin/inc/caiscutextsession.h
branchRCL_3
changeset 8 d0529222e3f0
parent 4 1a2a00e78665
child 11 bd874ee5e5e2
equal deleted inserted replaced
4:1a2a00e78665 8:d0529222e3f0
     1 /*
       
     2 * Copyright (c) 2005-2006 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 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Shortcut plug-in xSP extension session class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAISCUTEXTSESSION_H
       
    20 #define CAISCUTEXTSESSION_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class MAiScutExtMessageHandler;
       
    25 
       
    26 /**
       
    27  *  Server session class for xSP extensions.
       
    28  *
       
    29  *  Handles IPC between server and client. Commands and data are passed to
       
    30  *  observer.
       
    31  *
       
    32  *  @since S60 v3.2
       
    33  */
       
    34 class CAiScutExtSession : public CSession2
       
    35     {
       
    36     public:
       
    37         /**
       
    38          * Constructor
       
    39          * @param aObserver Reference to observer
       
    40          * @since S60 v3.2
       
    41          */
       
    42         CAiScutExtSession( MAiScutExtMessageHandler& aObserver );
       
    43 
       
    44         /**
       
    45          * Destructor
       
    46          * @since S60 v3.2
       
    47          */
       
    48         ~CAiScutExtSession();
       
    49 
       
    50     private: // From CSession2
       
    51         void ServiceL( const RMessage2& aMessage );
       
    52         void DispatchMessageL( const RMessage2& aMessage );
       
    53 
       
    54     private: // New functions
       
    55         void SetTargetDefinitionL( const RMessage2& aMessage );
       
    56         void SetPopupTextL( const RMessage2& aMessage );
       
    57         void ResetPopupTextL( const RMessage2& aMessage );
       
    58         void SetIconL( const RMessage2& aMessage );
       
    59         void ResetIconL( const RMessage2& aMessage );
       
    60         void IsInShortcutsL( const RMessage2& aMessage );
       
    61         void IssuePutInShortcutsL( const RMessage2& aMessage );
       
    62 
       
    63         void PanicClient( const RMessage2& aMessage, TInt aPanicCode ) const;
       
    64 
       
    65     private: // data
       
    66 
       
    67         /**
       
    68          * Reference to observer
       
    69          * Ref.
       
    70          */
       
    71         MAiScutExtMessageHandler& iObserver;
       
    72         
       
    73         /**
       
    74          * Target definition
       
    75          * Own.
       
    76          */
       
    77         HBufC* iTargetDefinition;
       
    78     };
       
    79 
       
    80 #endif // CAISCUTEXTSESSION_H
       
    81 
       
    82 // End of File.