presadap12/impsplugin/inc/cimpspluginlogoutrequest.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:41:52 +0200
changeset 0 094583676ce7
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  IMPS Protocol implementation for Presence Framework
*
*/


#ifndef __CIMPSPLUGINLOGOUTREQUEST_H__
#define __CIMPSPLUGINLOGOUTREQUEST_H__

//  INCLUDES
#include <e32base.h>
#include <ximpbase.h>
#include "impsdebugprint.h"

// FORWARD DECLARATIONS
class MImpsPrtPluginConnectionManager;


/**
 * CImpsPluginLogoutRequest
 *
 * Issue Logout Request to Network Server
 *
 * @lib ?library
 * @since S60 v4.0
 */
NONSHARABLE_CLASS(  CImpsPluginLogoutRequest ) : public CActive


    {

public:

    static CImpsPluginLogoutRequest* NewLC( MImpsPrtPluginConnectionManager& aConnMan,
    TXIMPRequestId aRequestId );
    static CImpsPluginLogoutRequest* NewL( MImpsPrtPluginConnectionManager& aConnMan,
                                           TXIMPRequestId aRequestId );
    virtual ~CImpsPluginLogoutRequest();


private:

    CImpsPluginLogoutRequest( MImpsPrtPluginConnectionManager& aConnMan,
                              TXIMPRequestId aRequestId );
    void ConstructL();


private: // from CActive

    void DoCancel();
    void RunL();
    TInt RunError( TInt aError );

public:
    void IssueLogoutRequestL();

private: // data

    /**
     * Request Id from PrFw
     */

    TXIMPRequestId iRequestId;

    /**
     * ?description_of_pointer_member
     * Own.  *** Write "Own" if this class owns the object pointed to; in
                 other words, if this class is responsible for deleting it.
     */

    /**
     * ?description_of_pointer_member
     * Not own.  *** Write "Not own" if some other class owns this object.
     */
    MImpsPrtPluginConnectionManager& iConnMan;
    };


#endif // __CIMPSPLUGINLOGOUTREQUEST_H__