wvuing/IMPSAlwaysOnlinePlugin/src/CPEngAlwaysOnlinePlugin.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Implements the CAlwaysOnlineEComInterface interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __PENGALWAYSONLINEPLUGIN_H__
       
    20 #define __PENGALWAYSONLINEPLUGIN_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <alwaysonlineecominterface.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CAlwaysOnlineManagerServer;
       
    27 class CIMPSAlwaysOnlinePluginImp;
       
    28 class CPEngAOCallObserver;
       
    29 class CIMPSReconnectNoteHandler;
       
    30 
       
    31 /**
       
    32 *  Implements the CAlwaysOnlineEComInterface interface
       
    33 *
       
    34 *  @lib PEngAOPlugin.lib
       
    35 *  @since 2.5
       
    36 */
       
    37 class CPEngAlwaysOnlinePlugin : public CAlwaysOnlineEComInterface
       
    38     {
       
    39     public:
       
    40         /**
       
    41         * Two-phased constructor.
       
    42         */
       
    43         static CPEngAlwaysOnlinePlugin* NewL();
       
    44 
       
    45         /**
       
    46         * Default destructor
       
    47         */
       
    48         virtual ~CPEngAlwaysOnlinePlugin();
       
    49 
       
    50         /**
       
    51         * Interface function from CAlwaysOnlineEComInterface
       
    52         * Command ID's can be found in alwaysonlinemanagercommon.h
       
    53         * Handles the command coming from the Always Online Manager
       
    54         * @param aCommand The command as an integer
       
    55         * @param aParameters A Buffer containing parameters
       
    56         * @return TAny A return value, KErrNone if successfull
       
    57         *							   KErrNotSupported if command wasn't supported
       
    58         */
       
    59         TAny* HandleServerCommandL( TInt aCommand, TDesC8* aParameters );
       
    60 
       
    61     private:
       
    62         /**
       
    63         * Default constructor.
       
    64         */
       
    65         CPEngAlwaysOnlinePlugin();
       
    66 
       
    67         /**
       
    68         * Default Symbian constructor
       
    69         */
       
    70         void ConstructL();
       
    71 
       
    72         /**
       
    73          * Cleanup method for releasing feature manager library
       
    74          * @param aPtr, pointer to object which is target of cleanup operation
       
    75          */
       
    76         static void CleanupFeatureManager( TAny *aPtr );
       
    77 
       
    78     private:
       
    79         /// the Instant Messaging always online plugin implementation, owned
       
    80         CIMPSAlwaysOnlinePluginImp* iIMAOPlugin;
       
    81     };
       
    82 
       
    83 #endif //__PENGALWAYSONLINEPLUGIN_H__