62
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-2005 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 |
|
|
19 |
#ifndef __PHONERINGINGTONESRVSESSION_H
|
|
20 |
#define __PHONERINGINGTONESRVSESSION_H
|
|
21 |
|
|
22 |
// FORWARD DECLARATIONS
|
|
23 |
class MPhoneRingingToneServer;
|
|
24 |
|
|
25 |
// CLASS DECLARATION
|
|
26 |
class CPhoneRingingToneServerSession : public CSession2
|
|
27 |
{
|
|
28 |
public:
|
|
29 |
/**
|
|
30 |
* Two-phased constructor.
|
|
31 |
* @param aServer It is the main server object.
|
|
32 |
* @return new instance.
|
|
33 |
*/
|
|
34 |
static CPhoneRingingToneServerSession* NewL( MPhoneRingingToneServer& aServer );
|
|
35 |
|
|
36 |
/**
|
|
37 |
* Destructor.
|
|
38 |
*/
|
|
39 |
~CPhoneRingingToneServerSession();
|
|
40 |
|
|
41 |
protected:
|
|
42 |
/**
|
|
43 |
* C++ default constructor.
|
|
44 |
*/
|
|
45 |
CPhoneRingingToneServerSession( MPhoneRingingToneServer& aServer );
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Symbian 2nd phase constructor.
|
|
49 |
*/
|
|
50 |
void ConstructL();
|
|
51 |
|
|
52 |
/**
|
|
53 |
* From CSession2, it is called whenever request is processed.
|
|
54 |
* @param aMessage It is the request.
|
|
55 |
*/
|
|
56 |
void ServiceL( const RMessage2& aMessage );
|
|
57 |
|
|
58 |
private:
|
|
59 |
// Server.
|
|
60 |
MPhoneRingingToneServer& iServer;
|
|
61 |
|
|
62 |
TInt iStartSession;
|
|
63 |
};
|
|
64 |
|
|
65 |
#endif
|