presencefwsimpleadpt/inc/simpleplugin.h
branchGCC_SURGE
changeset 28 d9861ae9169c
parent 23 77cb48a03620
parent 26 04ca1926b01c
equal deleted inserted replaced
23:77cb48a03620 28:d9861ae9169c
     1 /*
       
     2 * Copyright (c) 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:    Simple Protocol implementation for Presence Framework
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CSIMPLEPLUGIN_H
       
    22 #define CSIMPLEPLUGIN_H
       
    23 
       
    24 #include <e32std.h>
       
    25 
       
    26 #include <ximpbase.h>
       
    27 #include <ximpprotocolpluginbase.h>
       
    28 
       
    29 class MXIMPProtocolConnection;
       
    30 class MXIMPServiceInfo;
       
    31 class MXIMPClientContextInfo;
       
    32 class CSimplePluginConnection;
       
    33 
       
    34 
       
    35 /**
       
    36  * CSimplePlugin
       
    37  *
       
    38  * Implementation of CPrFwProtocolPluginBase
       
    39  *
       
    40  * @lib ?library
       
    41  * @since s60 v5.0
       
    42  */
       
    43 class CSimplePlugin: public CXIMPProtocolPluginBase
       
    44     {
       
    45 public:
       
    46 
       
    47     static CSimplePlugin* NewL();
       
    48     static CSimplePlugin* NewLC();
       
    49 
       
    50     virtual ~CSimplePlugin();
       
    51 
       
    52 private:
       
    53 
       
    54     CSimplePlugin();
       
    55     void ConstructL();
       
    56 
       
    57 
       
    58 public:
       
    59 
       
    60 // from base class MXIMPProtocolPlugin
       
    61 
       
    62     /**
       
    63      * Defined in a base class
       
    64      */
       
    65     void PrimeHost( MXIMPProtocolPluginHost& aHost );
       
    66 
       
    67     /**
       
    68      * Defined in a base class
       
    69      */
       
    70     MXIMPProtocolConnection& AcquireConnectionL(
       
    71         const MXIMPServiceInfo& aService,
       
    72         const MXIMPContextClientInfo& aContextClient );
       
    73 
       
    74     /**
       
    75      * Defined in a base class
       
    76      */
       
    77     void ReleaseConnection(
       
    78         MXIMPProtocolConnection& aConnection );
       
    79 
       
    80 // from base class MXIMPBase
       
    81 
       
    82     /**
       
    83      * Defined in a base class
       
    84      */
       
    85     TAny* GetInterface(
       
    86         TInt32 aInterfaceId,
       
    87         TIfGetOps aOps );
       
    88 
       
    89     /**
       
    90      * Defined in a base class
       
    91      */
       
    92     const TAny* GetInterface(
       
    93         TInt32 aInterfaceId,
       
    94         TIfGetOps aOps ) const;
       
    95 
       
    96     /**
       
    97      * Defined in a base class
       
    98      */
       
    99     TInt32 GetInterfaceId() const;
       
   100 
       
   101 
       
   102 private: // Data
       
   103 
       
   104     /*
       
   105      * Prime host
       
   106      * Not own.
       
   107      */
       
   108     MXIMPProtocolPluginHost* iHost;
       
   109 
       
   110     /**
       
   111      * Simple plugin connections
       
   112      */
       
   113     RPointerArray< CSimplePluginConnection > iConnections;
       
   114 
       
   115     };
       
   116 
       
   117 #endif // CSIMPLEPLUGIN_H