voipplugins/sipconnectionprovider/inc/scppresencehandlerrequest.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:29:57 +0100
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2006-2007 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:  Defines presencehandler's request ids and types
*
*/


#ifndef SCPPRESENCEHANDLERREQUEST_H_
#define SCPPRESENCEHANDLERREQUEST_H_

// INCLUDES
#include <ximpbase.h>

/**
 * Enumeration for request types.
 */
enum TScpReqType
        {
        EUnknownReq = 0,
        EBindReq ,
        EUnBindReq,
        EPublishOfflineReq,
        EPublishOnlineReq,
        ESubscribeReq
        };

        
/**
 * Class for defining presence handler request id and type
 */
class TScpReqId
    {
public:
    inline TScpReqId();
    inline TScpReqId( const TXIMPRequestId& aId,
                   TScpReqType aType );
    inline void SetId( const TXIMPRequestId& aId );
    inline void SetType( TScpReqType aType );
    inline const TXIMPRequestId& ReqId() const;
    inline TScpReqType Type() const;
private:
    TXIMPRequestId iReqId;
    TScpReqType iType;
    };
    
#include "scppresencehandlerrequest.inl"
    

#endif /*SCPPRESENCEHANDLERREQUEST_H_*/