equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Defines presencehandler's request ids and types |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SCPPRESENCEHANDLERREQUEST_H_ |
|
20 #define SCPPRESENCEHANDLERREQUEST_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <ximpbase.h> |
|
24 |
|
25 /** |
|
26 * Enumeration for request types. |
|
27 */ |
|
28 enum TScpReqType |
|
29 { |
|
30 EUnknownReq = 0, |
|
31 EBindReq , |
|
32 EUnBindReq, |
|
33 EPublishOfflineReq, |
|
34 EPublishOnlineReq, |
|
35 ESubscribeReq |
|
36 }; |
|
37 |
|
38 |
|
39 /** |
|
40 * Class for defining presence handler request id and type |
|
41 */ |
|
42 class TScpReqId |
|
43 { |
|
44 public: |
|
45 inline TScpReqId(); |
|
46 inline TScpReqId( const TXIMPRequestId& aId, |
|
47 TScpReqType aType ); |
|
48 inline void SetId( const TXIMPRequestId& aId ); |
|
49 inline void SetType( TScpReqType aType ); |
|
50 inline const TXIMPRequestId& ReqId() const; |
|
51 inline TScpReqType Type() const; |
|
52 private: |
|
53 TXIMPRequestId iReqId; |
|
54 TScpReqType iType; |
|
55 }; |
|
56 |
|
57 #include "scppresencehandlerrequest.inl" |
|
58 |
|
59 |
|
60 #endif /*SCPPRESENCEHANDLERREQUEST_H_*/ |