equal
deleted
inserted
replaced
|
1 /** |
|
2 * Copyright (c) 2007-2009 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 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 */ |
|
24 |
|
25 #ifndef CNTTRANSACTIONMSGHANDLER_H |
|
26 #define CNTTRANSACTIONMSGHANDLER_H |
|
27 |
|
28 class CCntMsgHandler; |
|
29 |
|
30 /** |
|
31 CCntTransactionMsgHandler class handles all Transaction related operations. It uses |
|
32 a message handling method to handle the incoming op code. |
|
33 |
|
34 It delegates the incoming op code to appropriate message handling method by using |
|
35 a lookup table of member function pointers created by CCntServer. |
|
36 |
|
37 @internalComponent |
|
38 */ |
|
39 class CCntTransactionMsgHandler : public CCntMsgHandler |
|
40 { |
|
41 public: |
|
42 static CCntTransactionMsgHandler* NewLC(CCntSession& aSession); |
|
43 virtual ~CCntTransactionMsgHandler(); |
|
44 TInt HandleMessageL(const RMessage2& aMessage); |
|
45 |
|
46 private: |
|
47 CCntTransactionMsgHandler(CCntSession& aSession); |
|
48 |
|
49 public: |
|
50 void BeginDbTransactionL(const RMessage2& aMessage); |
|
51 void EndDbTransactionL(const RMessage2& aMessage); |
|
52 void RollbackDbTransactionL(const RMessage2& aMessage); |
|
53 }; |
|
54 |
|
55 #endif |