|
1 // clientserver.h |
|
2 // |
|
3 // Copyright (c) 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "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 // Accenture - Initial contribution |
|
11 // |
|
12 |
|
13 |
|
14 #ifndef __CLIENTSERVER_H__ |
|
15 #define __CLIENTSERVER_H__ |
|
16 |
|
17 #include <e32cons.h> |
|
18 #include <fshell/consoleproxy.h> |
|
19 #include "guicons.h" |
|
20 |
|
21 NONSHARABLE_CLASS(CGuiConsClient) : public CConsoleProxy |
|
22 { |
|
23 public: |
|
24 CGuiConsClient(); |
|
25 |
|
26 virtual TInt Create(const TDesC &aTitle,TSize aSize); |
|
27 }; |
|
28 |
|
29 NONSHARABLE_CLASS(CGuiConsServer) : public CConsoleProxyServer |
|
30 { |
|
31 public: |
|
32 static CGuiConsServer* NewL(const TDesC& aServerName, MConsoleUi& aConsoleUi); |
|
33 |
|
34 virtual void ShutdownTimerExpired(); |
|
35 virtual ~CGuiConsServer(); |
|
36 private: |
|
37 CGuiConsServer(MConsoleUi& aConsoleUi); |
|
38 // from CConsoleProxyServer: |
|
39 virtual CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const; |
|
40 private: |
|
41 MConsoleUi& iUi; |
|
42 }; |
|
43 |
|
44 NONSHARABLE_CLASS(CGuiConsSession) : public CConsoleProxySession |
|
45 { |
|
46 public: |
|
47 CGuiConsSession(MConsoleUi& aConsoleUi); |
|
48 virtual ~CGuiConsSession(); |
|
49 |
|
50 private: // from CGuiConsSession |
|
51 virtual MProxiedConsole* InstantiateConsoleL(); |
|
52 virtual void ConsoleCreatedL(MProxiedConsole* aConsole); |
|
53 private: |
|
54 MConsoleUi& iUi; |
|
55 }; |
|
56 |
|
57 |
|
58 #endif //__CLIENTSERVER_H__ |
|
59 |