voipplugins/sipconnectionprovider/inc/scppresencehandlerrequest.h
changeset 0 a4daefaec16c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/voipplugins/sipconnectionprovider/inc/scppresencehandlerrequest.h	Mon Jan 18 20:12:36 2010 +0200
@@ -0,0 +1,60 @@
+/*
+* 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_*/