imservices/ossprotocoladaptation/inc/presentitygroups/cossprotocolpresentitygroups.h
changeset 46 860cd8a5168c
parent 35 085f765766a0
equal deleted inserted replaced
35:085f765766a0 46:860cd8a5168c
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  Oss Protocol presentity groups
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef COSSPROTOCOLPRESENTITYGROUPS_H__
       
    19 #define COSSPROTOCOLPRESENTITYGROUPS_H__
       
    20 
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <protocolpresentitygroups.h>
       
    24 
       
    25 
       
    26 class MOSSProtocolConnectionManager;
       
    27 
       
    28 
       
    29 /**
       
    30  * COSSProtocolpresentitygroups
       
    31  *
       
    32  * implementation of MProtocolPresentityGroups methods.
       
    33  * these methods will called by ximp framework 
       
    34  *
       
    35  */
       
    36 class COSSProtocolpresentitygroups :   public CBase,
       
    37                                         public MProtocolPresentityGroups
       
    38     {
       
    39 
       
    40 public:
       
    41 
       
    42     static COSSProtocolpresentitygroups* NewL( MOSSProtocolConnectionManager& aConnManager );
       
    43     ~COSSProtocolpresentitygroups();
       
    44 
       
    45 
       
    46 private:
       
    47 
       
    48     COSSProtocolpresentitygroups( MOSSProtocolConnectionManager& aConnManager );
       
    49     void ConstructL();
       
    50 
       
    51 public:  // from MXIMPBase
       
    52 
       
    53     /**
       
    54 	 * @see MXIMPBase
       
    55 	 */
       
    56     TAny* GetInterface( TInt32 aInterfaceId,
       
    57                         TIfGetOps  aOptions );
       
    58 	/**
       
    59 	 * @see MXIMPBase
       
    60 	 */
       
    61     const TAny* GetInterface( TInt32 aInterfaceId,
       
    62                               TIfGetOps aOptions ) const;
       
    63 	/**
       
    64 	 * @see MXIMPBase
       
    65 	 */
       
    66     TInt32 GetInterfaceId() const;
       
    67 
       
    68 public: //From MProtocolPresentityGroups
       
    69     /**
       
    70 	 * @see MProtocolPresentityGroups
       
    71 	 */
       
    72     void DoSubscribePresentityGroupListL(
       
    73                     TXIMPRequestId aReqId );
       
    74     /**
       
    75 	 * @see MProtocolPresentityGroups
       
    76 	 */
       
    77     void DoUnsubscribePresentityGroupListL(
       
    78                     TXIMPRequestId aReqId );
       
    79 
       
    80 public: // Manage presentity groups
       
    81     /**
       
    82 	 * @see MProtocolPresentityGroups
       
    83 	 */
       
    84     void DoCreatePresentityGroupL(
       
    85                     const MXIMPIdentity& aGroupId,
       
    86                     const TDesC16& aDisplayName,
       
    87                     TXIMPRequestId aReqId );
       
    88     /**
       
    89 	 * @see MProtocolPresentityGroups
       
    90 	 */
       
    91     void DoDeletePresentityGroupL(
       
    92                     const MXIMPIdentity& aGroupId,
       
    93                     TXIMPRequestId aReqId );
       
    94     /**
       
    95 	 * @see MProtocolPresentityGroups
       
    96 	 */
       
    97     void DoUpdatePresentityGroupDisplayNameL(
       
    98                     const MXIMPIdentity& aGroupId,
       
    99                     const TDesC16& aDisplayName,
       
   100                     TXIMPRequestId aReqId );
       
   101 
       
   102 public: // Subscribe presentity group content
       
   103     /**
       
   104 	 * @see MProtocolPresentityGroups
       
   105 	 */
       
   106     void DoSubscribePresentityGroupContentL(
       
   107                     const MXIMPIdentity& aGroupId,
       
   108                     TXIMPRequestId aReqId );
       
   109     /**
       
   110 	 * @see MProtocolPresentityGroups
       
   111 	 */
       
   112    void DoUnsubscribePresentityGroupContentL(
       
   113                     const MXIMPIdentity& aGroupId,
       
   114                     TXIMPRequestId aReqId );
       
   115 
       
   116 public: // Manage presentity group members
       
   117     /**
       
   118 	 * @see MProtocolPresentityGroups
       
   119 	 */
       
   120     void DoAddPresentityGroupMemberL(
       
   121                     const MXIMPIdentity& aGroupId,
       
   122                     const MXIMPIdentity& aMemberId,
       
   123                     const TDesC16& aMemberDisplayName,
       
   124                     TXIMPRequestId aReqId );
       
   125     /**
       
   126 	 * @see MProtocolPresentityGroups
       
   127 	 */
       
   128     void DoRemovePresentityGroupMemberL(
       
   129                     const MXIMPIdentity& aGroupId,
       
   130                     const MXIMPIdentity& aMemberId,
       
   131                     TXIMPRequestId aReqId );
       
   132     /**
       
   133 	 * @see MProtocolPresentityGroups
       
   134 	 */
       
   135     void DoUpdatePresentityGroupMemberDisplayNameL(
       
   136                     const MXIMPIdentity& aGroupId,
       
   137                     const MXIMPIdentity& aMemberId,
       
   138                     const TDesC16& aMemberDisplayName,
       
   139                     TXIMPRequestId aReqId );
       
   140 
       
   141 private:
       
   142 	/**
       
   143      * Creates data handler
       
   144      */
       
   145 	void CreateDataHandlerL();
       
   146 	
       
   147 private:    // data members
       
   148     
       
   149     /**
       
   150      * Oss Protocol Plugin Connection Manager
       
   151      * Not own.  *** Write "Not own" if some other class owns this object.
       
   152      */
       
   153     MOSSProtocolConnectionManager& iConnMan;
       
   154 
       
   155     };
       
   156 
       
   157 #endif // COSSPROTOCOLPRESENTITYGROUPS_H__