|
1 /* |
|
2 * Copyright (c) 2010-2010 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: Session class for phone ringingtone server. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPHONETONESERVERSESSION_H |
|
19 #define CPHONETONESERVERSESSION_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 class MPhoneToneServer; |
|
24 class CPhoneToneServerPlaybackController; |
|
25 |
|
26 NONSHARABLE_CLASS( CPhoneToneServerSession ) : public CSession2 |
|
27 { |
|
28 public: |
|
29 |
|
30 /** |
|
31 * Two-phased constructor. |
|
32 * |
|
33 * @param aServer Interface for server. |
|
34 * @return new instance. |
|
35 */ |
|
36 static CPhoneToneServerSession* NewL( const MPhoneToneServer& aServer ); |
|
37 |
|
38 ~CPhoneToneServerSession(); |
|
39 |
|
40 protected: |
|
41 |
|
42 /** |
|
43 * From CSession2, it is called whenever request is processed. |
|
44 * @param aMessage It is the request. |
|
45 */ |
|
46 void ServiceL( const RMessage2& aMessage ); |
|
47 |
|
48 private: |
|
49 |
|
50 /** |
|
51 * C++ default constructor. |
|
52 * |
|
53 * @param aServer Reference to server interface |
|
54 */ |
|
55 CPhoneToneServerSession( const MPhoneToneServer& aServer ); |
|
56 |
|
57 void ConstructL(); |
|
58 |
|
59 |
|
60 private: |
|
61 |
|
62 const MPhoneToneServer& iServer; |
|
63 |
|
64 //Owned. |
|
65 CPhoneToneServerPlaybackController* iController; |
|
66 }; |
|
67 |
|
68 #endif //CPHONETONESERVERSESSION_H |
|
69 |
|
70 // End of file |