presadap12/impsplugin/inc/cimpsprotocolpresencewatching.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     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:  IMPS Protocol implementation for Presence Framework
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CIMPSPROTOCOLPRESENCEWATCHING_H__
       
    20 #define __CIMPSPROTOCOLPRESENCEWATCHING_H__
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <protocolpresencewatching.h>
       
    25 
       
    26 
       
    27 
       
    28 class MXIMPServiceInfo;
       
    29 class MImpsPrtPluginConnectionManager;
       
    30 //class CSubscribeOwnPresenceNotificationRequest;
       
    31 
       
    32 /**
       
    33  * CImpsProtocolPresenceWatching
       
    34  *
       
    35  * Issue Imps Protocol Presence Watching Requests to Network Server
       
    36  *
       
    37  * @lib ?library
       
    38  * @since S60 v4.0
       
    39  */
       
    40 class CImpsProtocolPresenceWatching :   public CBase,
       
    41             public MProtocolPresenceWatching
       
    42     {
       
    43     public:
       
    44 
       
    45         static CImpsProtocolPresenceWatching* NewL( MImpsPrtPluginConnectionManager& aConnManager );
       
    46         ~CImpsProtocolPresenceWatching();
       
    47 
       
    48 
       
    49     private:
       
    50 
       
    51         CImpsProtocolPresenceWatching( MImpsPrtPluginConnectionManager& aConnManager );
       
    52         void ConstructL();
       
    53 
       
    54 
       
    55     public:
       
    56 
       
    57         TAny* GetInterface( TInt32 aInterfaceId,
       
    58                             TIfGetOps  aOptions );
       
    59 
       
    60         const TAny* GetInterface( TInt32 aInterfaceId,
       
    61                                   TIfGetOps  aOptions ) const;
       
    62         TInt32 GetInterfaceId() const;
       
    63 
       
    64 
       
    65     public:
       
    66 
       
    67         void DoSubscribePresentityPresenceL(
       
    68             const MXIMPIdentity& aPresentityId,
       
    69             const MPresenceInfoFilter& aPif,
       
    70             TXIMPRequestId aReqId );
       
    71 
       
    72         void DoUpdatePresentityPresenceSubscriptionPifL(
       
    73             const MXIMPIdentity& aPresentityId,
       
    74             const MPresenceInfoFilter& aPif,
       
    75             TXIMPRequestId aReqId );
       
    76 
       
    77 
       
    78         void DoUnsubscribePresentityPresenceL(
       
    79             const MXIMPIdentity& aPresentityId,
       
    80             TXIMPRequestId aReqId );
       
    81 
       
    82 
       
    83     public: // Subscribe presence information from presentity group members
       
    84 
       
    85 
       
    86 
       
    87         void DoSubscribePresentityGroupMembersPresenceL(
       
    88             const MXIMPIdentity& aGroupId,
       
    89             const MPresenceInfoFilter& aPif,
       
    90             TXIMPRequestId aReqId );
       
    91 
       
    92         void DoUpdatePresentityGroupMembersPresenceSubscriptionPifL(
       
    93             const MXIMPIdentity& aGroupId,
       
    94             const MPresenceInfoFilter& aPif,
       
    95             TXIMPRequestId aReqId );
       
    96 
       
    97         void DoUnsubscribePresentityGroupMembersPresenceL(
       
    98             const MXIMPIdentity& aGroupId,
       
    99             TXIMPRequestId aReqId );
       
   100 
       
   101 
       
   102     private: // data members
       
   103 
       
   104         /**
       
   105          * Request Id from PrFw
       
   106          */
       
   107 
       
   108         /**
       
   109          * Imps Protocol Plugin Connection Manager
       
   110          * Not own.  *** Write "Not own" if some other class owns this object.
       
   111          */
       
   112         MImpsPrtPluginConnectionManager& iConnMan;
       
   113 
       
   114         //CSubscribeOwnPresenceNotificationRequest* iNotification;
       
   115     };
       
   116 
       
   117 #endif // CIMPSPROTOCOLPRESENCEWATCHING_H__