|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_NCDNODESEEN_H |
|
20 #define C_NCDNODESEEN_H |
|
21 |
|
22 #include "catalogscommunicable.h" |
|
23 #include "ncdnodeseeninfo.h" |
|
24 |
|
25 class CNcdNode; |
|
26 |
|
27 class CNcdNodeSeen : public CCatalogsCommunicable |
|
28 { |
|
29 public: |
|
30 static CNcdNodeSeen* NewL( CNcdNodeSeenInfo& aSeenInfo, CNcdNode& aNode ); |
|
31 static CNcdNodeSeen* NewLC( CNcdNodeSeenInfo& aSeenInfo, CNcdNode& aNode ); |
|
32 |
|
33 ~CNcdNodeSeen(); |
|
34 |
|
35 TBool IsSeenL(); |
|
36 void SetSeenL(); |
|
37 |
|
38 public: // from CCatalogsCommunicable |
|
39 |
|
40 virtual void ReceiveMessage( |
|
41 MCatalogsBaseMessage* aMessage, |
|
42 TInt aFunctionNumber ); |
|
43 |
|
44 virtual void CounterPartLost( |
|
45 const MCatalogsSession& aSession ); |
|
46 |
|
47 |
|
48 protected: |
|
49 CNcdNodeSeen( CNcdNodeSeenInfo& aSeenInfo, CNcdNode& aNode ); |
|
50 void ConstructL(); |
|
51 |
|
52 void InternalizeRequestL( MCatalogsBaseMessage& aMessage ); |
|
53 void SetSeenRequestL( MCatalogsBaseMessage& aMessage ); |
|
54 void ReleaseRequest( MCatalogsBaseMessage& aMessage ) const; |
|
55 |
|
56 |
|
57 private: |
|
58 CNcdNodeSeenInfo& iSeenInfo; |
|
59 CNcdNode& iOwnerNode; |
|
60 }; |
|
61 |
|
62 #endif // C_NCDNODESEEN_H |
|
63 |