presadap12/impsplugin/inc/cimpspluginlogoutrequest.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 __CIMPSPLUGINLOGOUTREQUEST_H__
       
    20 #define __CIMPSPLUGINLOGOUTREQUEST_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <ximpbase.h>
       
    25 #include "impsdebugprint.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class MImpsPrtPluginConnectionManager;
       
    29 
       
    30 
       
    31 /**
       
    32  * CImpsPluginLogoutRequest
       
    33  *
       
    34  * Issue Logout Request to Network Server
       
    35  *
       
    36  * @lib ?library
       
    37  * @since S60 v4.0
       
    38  */
       
    39 NONSHARABLE_CLASS(  CImpsPluginLogoutRequest ) : public CActive
       
    40 
       
    41 
       
    42     {
       
    43 
       
    44 public:
       
    45 
       
    46     static CImpsPluginLogoutRequest* NewLC( MImpsPrtPluginConnectionManager& aConnMan,
       
    47     TXIMPRequestId aRequestId );
       
    48     static CImpsPluginLogoutRequest* NewL( MImpsPrtPluginConnectionManager& aConnMan,
       
    49                                            TXIMPRequestId aRequestId );
       
    50     virtual ~CImpsPluginLogoutRequest();
       
    51 
       
    52 
       
    53 private:
       
    54 
       
    55     CImpsPluginLogoutRequest( MImpsPrtPluginConnectionManager& aConnMan,
       
    56                               TXIMPRequestId aRequestId );
       
    57     void ConstructL();
       
    58 
       
    59 
       
    60 private: // from CActive
       
    61 
       
    62     void DoCancel();
       
    63     void RunL();
       
    64     TInt RunError( TInt aError );
       
    65 
       
    66 public:
       
    67     void IssueLogoutRequestL();
       
    68 
       
    69 private: // data
       
    70 
       
    71     /**
       
    72      * Request Id from PrFw
       
    73      */
       
    74 
       
    75     TXIMPRequestId iRequestId;
       
    76 
       
    77     /**
       
    78      * ?description_of_pointer_member
       
    79      * Own.  *** Write "Own" if this class owns the object pointed to; in
       
    80                  other words, if this class is responsible for deleting it.
       
    81      */
       
    82 
       
    83     /**
       
    84      * ?description_of_pointer_member
       
    85      * Not own.  *** Write "Not own" if some other class owns this object.
       
    86      */
       
    87     MImpsPrtPluginConnectionManager& iConnMan;
       
    88     };
       
    89 
       
    90 
       
    91 #endif // __CIMPSPLUGINLOGOUTREQUEST_H__