equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Console class for server. |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #include "impsserver.h" |
|
22 #include "impsutils.h" |
|
23 |
|
24 #ifndef _DEBUG |
|
25 #define _NO_IMPS_LOGGING_ |
|
26 #endif |
|
27 |
|
28 TInt SetSignal( TImpsSignal& aSignal ) |
|
29 { |
|
30 TBuf<50> buf; |
|
31 |
|
32 User::CommandLine( buf ); |
|
33 |
|
34 return aSignal.Set( buf ); |
|
35 } |
|
36 |
|
37 GLDEF_C TInt E32Main() |
|
38 { |
|
39 #ifndef _NO_IMPS_LOGGING_ |
|
40 CImpsClientLogger::Log( _L( "E32Main begins" ) ); |
|
41 TFileName name( RProcess().FileName( ) ); |
|
42 CImpsClientLogger::Log( _L( "Server: Exe loaded from %S" ), &name ); |
|
43 #endif |
|
44 |
|
45 TImpsSignal signal; |
|
46 TInt err = SetSignal( signal ); |
|
47 if ( !err ) |
|
48 { |
|
49 err = CImpsServer::ThreadStart( signal ); |
|
50 } |
|
51 return err; |
|
52 } |
|
53 |
|
54 // End of File |
|
55 |