47 // ChspsThemeServerSession::ChspsThemeServerSession |
47 // ChspsThemeServerSession::ChspsThemeServerSession |
48 // (other items were commented in a header). |
48 // (other items were commented in a header). |
49 // ----------------------------------------------------------------------------- |
49 // ----------------------------------------------------------------------------- |
50 // |
50 // |
51 ChspsThemeServerSession::ChspsThemeServerSession( |
51 ChspsThemeServerSession::ChspsThemeServerSession( |
52 const TInt aAppUid ) |
52 const TInt aAppUid ) : |
53 { |
53 iAppUid( aAppUid ), |
54 iAppUid = aAppUid; |
54 iIconFileCopyRequired( ETrue ), |
|
55 iResourceFileCopyRequired( ETrue ) |
|
56 { |
55 } |
57 } |
56 |
58 |
57 // ----------------------------------------------------------------------------- |
59 // ----------------------------------------------------------------------------- |
58 // ChspsThemeServerSession::ChspsThemeServerSession |
60 // ChspsThemeServerSession::ChspsThemeServerSession |
59 // 2nd phase construct for sessions - called by the CServer framework |
61 // 2nd phase construct for sessions - called by the CServer framework |
66 iLogBus = ChspsLogBusFile::NewL( ChspsLogBusFile::CreateLogFilename( _L("themeserver_session") ) ); |
68 iLogBus = ChspsLogBusFile::NewL( ChspsLogBusFile::CreateLogFilename( _L("themeserver_session") ) ); |
67 iLogBus->LogText( _L( "ChspsThemeServerSession::CreateL" ) ); |
69 iLogBus->LogText( _L( "ChspsThemeServerSession::CreateL" ) ); |
68 iLogBus->LogText( _L( "--------------------------------------------------------" ) ); |
70 iLogBus->LogText( _L( "--------------------------------------------------------" ) ); |
69 #endif |
71 #endif |
70 |
72 |
71 Server().AddSession(); |
73 Server().AddSession( this ); |
72 iHoldingResources = EFalse; |
74 iHoldingResources = EFalse; |
73 User::LeaveIfError( iFs.Connect() ); |
75 User::LeaveIfError( iFs.Connect() ); |
74 Server().CheckConfigurationL( iAppUid ); |
76 Server().CheckConfigurationL( iAppUid ); |
75 } |
77 } |
76 |
78 |
91 { |
93 { |
92 Server().DecreaseRequestClientCount(); |
94 Server().DecreaseRequestClientCount(); |
93 } |
95 } |
94 delete iClientRequestHandler; |
96 delete iClientRequestHandler; |
95 |
97 |
96 Server().DropSession(); |
98 Server().DropSession( this ); |
97 |
99 |
98 #ifdef HSPS_LOG_ACTIVE |
100 #ifdef HSPS_LOG_ACTIVE |
99 if( iLogBus ) |
101 if( iLogBus ) |
100 { |
102 { |
101 iLogBus->LogText( _L( "ChspsThemeServerSession::~ChspsThemeServerSession" ) ); |
103 iLogBus->LogText( _L( "ChspsThemeServerSession::~ChspsThemeServerSession" ) ); |
282 case EhspsCopyResources: |
284 case EhspsCopyResources: |
283 { |
285 { |
284 #ifdef HSPS_LOG_ACTIVE |
286 #ifdef HSPS_LOG_ACTIVE |
285 iLogBus->LogText( _L( "DoServiceL: EhspsCopyResources" ) ); |
287 iLogBus->LogText( _L( "DoServiceL: EhspsCopyResources" ) ); |
286 #endif |
288 #endif |
287 CopyResourceFilesL( aMessage ); |
289 if( iResourceFileCopyRequired ) |
|
290 { |
|
291 CopyResourceFilesL( aMessage ); |
|
292 iResourceFileCopyRequired = EFalse; |
|
293 } |
|
294 else |
|
295 { |
|
296 aMessage.Complete( EhspsResourceCopySuccess ); |
|
297 } |
288 break; |
298 break; |
289 } |
299 } |
290 case EhspsAddPlugin: |
300 case EhspsAddPlugin: |
291 { |
301 { |
292 #ifdef HSPS_LOG_ACTIVE |
302 #ifdef HSPS_LOG_ACTIVE |
999 RFs& ChspsThemeServerSession::FileSystem() |
1009 RFs& ChspsThemeServerSession::FileSystem() |
1000 { |
1010 { |
1001 return iFs; |
1011 return iFs; |
1002 } |
1012 } |
1003 |
1013 |
|
1014 // ----------------------------------------------------------------------------- |
|
1015 // ChspsThemeServerSession::IconFileCopyRequired |
|
1016 // ----------------------------------------------------------------------------- |
|
1017 // |
|
1018 TBool ChspsThemeServerSession::IconFileCopyRequired() const |
|
1019 { |
|
1020 return iIconFileCopyRequired; |
|
1021 } |
|
1022 |
|
1023 // ----------------------------------------------------------------------------- |
|
1024 // ChspsThemeServerSession::SetIconFileCopyRequired |
|
1025 // ----------------------------------------------------------------------------- |
|
1026 // |
|
1027 void ChspsThemeServerSession::SetIconFileCopyRequired( const TBool aCopyRequired ) |
|
1028 { |
|
1029 iIconFileCopyRequired = aCopyRequired; |
|
1030 } |
|
1031 |
|
1032 // ----------------------------------------------------------------------------- |
|
1033 // ChspsThemeServerSession::ResourceFileCopyRequired |
|
1034 // ----------------------------------------------------------------------------- |
|
1035 // |
|
1036 TBool ChspsThemeServerSession::ResourceFileCopyRequired() const |
|
1037 { |
|
1038 return iResourceFileCopyRequired; |
|
1039 } |
|
1040 |
|
1041 // ----------------------------------------------------------------------------- |
|
1042 // ChspsThemeServerSession::SetResourceFileCopyRequired |
|
1043 // ----------------------------------------------------------------------------- |
|
1044 // |
|
1045 void ChspsThemeServerSession::SetResourceFileCopyRequired( const TBool aCopyRequired ) |
|
1046 { |
|
1047 iResourceFileCopyRequired = aCopyRequired; |
|
1048 } |
|
1049 |
|
1050 // ----------------------------------------------------------------------------- |
|
1051 // ChspsThemeServerSession::AppUid |
|
1052 // ----------------------------------------------------------------------------- |
|
1053 // |
|
1054 TBool ChspsThemeServerSession::AppUid() const |
|
1055 { |
|
1056 return iAppUid; |
|
1057 } |
|
1058 |
1004 // end of file |
1059 // end of file |
1005 |
1060 |