presadap12/impsplugin/inc/presenceauthorization/cgrantpresenceforeveryonerequest.h
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     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 __CGRANTPRESENCEFOREVERYONEREQUEST_H__
       
    20 #define __CGRANTPRESENCEFOREVERYONEREQUEST_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 class MXIMPIdentity;
       
    34 class MPresenceInfoFilter;
       
    35 
       
    36 /**
       
    37  * CGrantPresenceForEveryoneRequest
       
    38  *
       
    39  * Issue Add Presentity Group Member Request to Network Server
       
    40  *
       
    41  * @lib ?library
       
    42  * @since S60 v4.0
       
    43  */
       
    44 
       
    45 class CGrantPresenceForEveryoneRequest: public CActive
       
    46 
       
    47 
       
    48     {
       
    49 
       
    50     public:
       
    51 
       
    52         static CGrantPresenceForEveryoneRequest* NewL(
       
    53             MImpsPrtPluginConnectionManager& aConnMan,
       
    54             TXIMPRequestId aRequestId );
       
    55 
       
    56         static CGrantPresenceForEveryoneRequest* NewLC(
       
    57             MImpsPrtPluginConnectionManager& aConnMan,
       
    58             TXIMPRequestId aRequestId );
       
    59 
       
    60         virtual ~CGrantPresenceForEveryoneRequest();
       
    61 
       
    62     private:
       
    63 
       
    64         CGrantPresenceForEveryoneRequest(
       
    65             MImpsPrtPluginConnectionManager& aConnMan,
       
    66             TXIMPRequestId aRequestId  );
       
    67         void ConstructL();
       
    68 
       
    69     private: // from CActive
       
    70 
       
    71         void DoCancel();
       
    72         void RunL();
       
    73         TInt RunError( TInt aError );
       
    74 
       
    75     public:
       
    76 
       
    77         void GrantPresenceForEveryoneL(
       
    78             const MPresenceInfoFilter& aPif );
       
    79 
       
    80 
       
    81     private: // data
       
    82 
       
    83         /**
       
    84          * Request Id from PrFw
       
    85          */
       
    86 
       
    87         TXIMPRequestId iRequestId;
       
    88 
       
    89         /**
       
    90          * Send data request to pure data handler generates the id
       
    91          */
       
    92         TInt iSendId;
       
    93 
       
    94         /**
       
    95          * Response, to get it from pure data handler
       
    96          */
       
    97         HBufC8* iResponse;
       
    98 
       
    99         /**
       
   100          * ?description_of_pointer_member
       
   101          * Own.  *** Write "Own" if this class owns the object pointed to; in
       
   102                      other words, if this class is responsible for deleting it.
       
   103          */
       
   104 
       
   105         MPEngXMLParser* iParser;
       
   106 
       
   107         /**
       
   108          * Imps Protocol Plugin Connection Manager
       
   109          * Not own.  *** Write "Not own" if some other class owns this object.
       
   110          */
       
   111         MImpsPrtPluginConnectionManager& iConnMan;
       
   112 
       
   113     };
       
   114 
       
   115 
       
   116 #endif // __CGRANTPRESENCEFOREVERYONEREQUEST_H__
       
   117