presadap12/impsplugin/inc/presencepublishing/csubscribeownpresencenotificationrequest.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 __CSUBSCRIBEOWNPRESENCENOTIFICATIONREQUEST_H__
       
    20 #define __CSUBSCRIBEOWNPRESENCENOTIFICATIONREQUEST_H__
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <ximpbase.h>
       
    26 #include "impsdebugprint.h"
       
    27 
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class MImpsPrtPluginConnectionManager;
       
    31 class MPEngXMLParser;
       
    32 class MPEngXmlSerializer;
       
    33 
       
    34 /**
       
    35  * CSubscribeOwnPresenceNotificationRequest
       
    36  *
       
    37  * Issue Subscribe Presentity Group List Request to Network Server
       
    38  *
       
    39  * @lib ?library
       
    40  * @since S60 v4.0
       
    41  */
       
    42 
       
    43 class CSubscribeOwnPresenceNotificationRequest: public CActive
       
    44 
       
    45 
       
    46     {
       
    47 
       
    48     public:
       
    49 
       
    50         static CSubscribeOwnPresenceNotificationRequest* NewL(
       
    51             MImpsPrtPluginConnectionManager& aConnMan,
       
    52             TXIMPRequestId aRequestId );
       
    53 
       
    54         static CSubscribeOwnPresenceNotificationRequest* NewLC(
       
    55             MImpsPrtPluginConnectionManager& aConnMan,
       
    56             TXIMPRequestId aRequestId );
       
    57 
       
    58         virtual ~CSubscribeOwnPresenceNotificationRequest();
       
    59 
       
    60     private:
       
    61 
       
    62         CSubscribeOwnPresenceNotificationRequest(
       
    63             MImpsPrtPluginConnectionManager& aConnMan,
       
    64             TXIMPRequestId aRequestId  );
       
    65         void ConstructL();
       
    66 
       
    67     private: // from CActive
       
    68 
       
    69         void DoCancel();
       
    70         void RunL();
       
    71         TInt RunError( TInt aError );
       
    72 
       
    73     public:
       
    74 
       
    75         void MakeSubscribeOwnPresenceNotificationActiveL();
       
    76         void HandleIncomingDataL();
       
    77 
       
    78     private: // data
       
    79 
       
    80         /**
       
    81          * Request Id from PrFw
       
    82          */
       
    83 
       
    84         TXIMPRequestId iRequestId;
       
    85 
       
    86         /**
       
    87          * Send data request to pure data handler generates the id
       
    88          */
       
    89         TInt iSendId;
       
    90         HBufC8* iResponse;
       
    91         HBufC16* iListId;
       
    92 
       
    93 
       
    94         /**
       
    95          * ?description_of_pointer_member
       
    96          * Own.  *** Write "Own" if this class owns the object pointed to; in
       
    97                      other words, if this class is responsible for deleting it.
       
    98          */
       
    99 
       
   100         MPEngXMLParser* iParser;
       
   101 
       
   102         /**
       
   103          * Imps Protocol Plugin Connection Manager
       
   104          * Not own.  *** Write "Not own" if some other class owns this object.
       
   105          */
       
   106         MImpsPrtPluginConnectionManager& iConnMan;
       
   107 
       
   108     };
       
   109 
       
   110 
       
   111 #endif // __CSUBSCRIBEOWNPRESENCENOTIFICATIONREQUEST_H__
       
   112