|
1 /* |
|
2 * Copyright (c) 2002 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: AlwaysOnline server session |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __ALWAYSONLINEMANAGERSERVERSESSION_H__ |
|
20 #define __ALWAYSONLINEMANAGERSERVERSESSION_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <msvapi.h> |
|
24 #include <mtclreg.h> |
|
25 |
|
26 //forward declarations |
|
27 class CAlwaysOnlineManagerServer; |
|
28 |
|
29 |
|
30 /** |
|
31 * CAlwaysOnlineManagerServerSession |
|
32 * |
|
33 * Server side session class |
|
34 */ |
|
35 class CAlwaysOnlineManagerServerSession : public CSession2 |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * |
|
40 **/ |
|
41 static CAlwaysOnlineManagerServerSession* NewL( /*RThread &aClient,*/ CAlwaysOnlineManagerServer * aServer ); |
|
42 |
|
43 /** |
|
44 * |
|
45 **/ |
|
46 CAlwaysOnlineManagerServerSession( /*RThread& aClient*/ ); |
|
47 |
|
48 /** |
|
49 * |
|
50 **/ |
|
51 void ConstructL( CAlwaysOnlineManagerServer* aServer ); |
|
52 |
|
53 /** |
|
54 * |
|
55 **/ |
|
56 virtual ~CAlwaysOnlineManagerServerSession(); |
|
57 |
|
58 |
|
59 /** |
|
60 * |
|
61 **/ |
|
62 virtual void ServiceL( const RMessage2 &aMessage ); |
|
63 |
|
64 /** |
|
65 * |
|
66 **/ |
|
67 void DispatchMessageL( const RMessage2 &aMessage ); |
|
68 |
|
69 /** |
|
70 * PanicClient |
|
71 * Panics client if something goes wrong |
|
72 * @since Series60 3.0 |
|
73 * @param aMessage, panic message |
|
74 * @param aPanic, panic code |
|
75 **/ |
|
76 void PanicClient( const RMessage2& aMessage, TInt aPanic ) const; |
|
77 |
|
78 private: |
|
79 CAlwaysOnlineManagerServer *iAOMServer; // pointer to owning server |
|
80 |
|
81 }; |
|
82 |
|
83 #endif |
|
84 //EOF |