imstutils/imconversationview/tsrc/imcvuiengine_test/dummytestadaptation/inc/cossprotocollogoutrequest.h
branchRCL_3
changeset 28 3104fc151679
parent 27 2b7283837edb
child 29 9a48e301e94b
equal deleted inserted replaced
27:2b7283837edb 28:3104fc151679
     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:  Login Request to the Network Server.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __COSSPROTOCOLLOGOUTREQUEST_H_
       
    21 #define __COSSPROTOCOLLOGOUTREQUEST_H_
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <e32std.h>
       
    26 #include <ximpbase.h>
       
    27 #include "ossprotocloliterals.h"
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 class MOSSProtocolConnectionManager;
       
    31 
       
    32 class COSSProtocolConnectionManager;
       
    33 
       
    34 
       
    35 /**
       
    36  * COSSProtocolLogoutRequest
       
    37  *
       
    38  * Issue Login Request to the Network Server
       
    39  *
       
    40  * @lib ?library
       
    41  * @since S60 v4.0
       
    42  */
       
    43 NONSHARABLE_CLASS (  COSSProtocolLogoutRequest ) : public CActive
       
    44 
       
    45 
       
    46 	{
       
    47 
       
    48 public:
       
    49 
       
    50 	static COSSProtocolLogoutRequest* NewLC ( MOSSProtocolConnectionManager& aConnMan,
       
    51 	TXIMPRequestId aRequestId );
       
    52 	static COSSProtocolLogoutRequest* NewL ( MOSSProtocolConnectionManager& aConnMan,
       
    53 	        TXIMPRequestId aRequestId );
       
    54 	virtual ~COSSProtocolLogoutRequest();
       
    55 
       
    56 
       
    57 private:
       
    58 
       
    59 	COSSProtocolLogoutRequest ( MOSSProtocolConnectionManager& aConnMan,
       
    60 	                            TXIMPRequestId aRequestId  );
       
    61 	void ConstructL();
       
    62 
       
    63 
       
    64 private: // from CActive
       
    65 
       
    66 	void DoCancel();
       
    67 	/*
       
    68 	 * RunL() function also deletes the request object once the activity is done
       
    69 	 *
       
    70 	 */
       
    71 	void RunL();
       
    72 	TInt RunError ( TInt aError );
       
    73 
       
    74 public:
       
    75 	/**
       
    76 	 * Issue logout request to the isolation server
       
    77 	 */
       
    78 	void IssueLogoutRequestL();
       
    79 
       
    80 
       
    81 private: // data
       
    82 
       
    83 	/**
       
    84 	 * OWN: Request Id
       
    85 	 */
       
    86 
       
    87 	TXIMPRequestId iRequestId;
       
    88 	/**
       
    89 	 * OSS Protocol Plugin Connection Manager
       
    90 	 * Not own.
       
    91 	 */
       
    92 	MOSSProtocolConnectionManager& iConnMan;
       
    93 
       
    94 	/**
       
    95 	 * Send data request to pure data handler generates the id
       
    96 	 */
       
    97 	TInt iSendId;
       
    98 
       
    99 	};
       
   100 
       
   101 
       
   102 #endif // __COSSPROTOCOLLOGOUTREQUEST_H_
       
   103