equal
deleted
inserted
replaced
18 |
18 |
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include "HtiPIMServicePlugin.h" |
20 #include "HtiPIMServicePlugin.h" |
21 #include "PIMHandler.h" |
21 #include "PIMHandler.h" |
22 #include "HtiBookmarkHandler.h" |
22 #include "HtiBookmarkHandler.h" |
23 #include "HtiSimDirHandlerVPbk.h" |
23 #include "HtiSimDirHandler.h" |
24 |
|
25 #include <HtiDispatcherInterface.h> |
24 #include <HtiDispatcherInterface.h> |
26 #include <HTILogging.h> |
25 #include <HtiLogging.h> |
27 |
26 |
28 // CONSTANTS |
27 // CONSTANTS |
29 _LIT8( KErrorMissingCommand, "Command was not given - message was empty" ); |
28 _LIT8( KErrorMissingCommand, "Missing command" ); |
30 |
29 |
31 // ---------------------------------------------------------------------------- |
30 // ---------------------------------------------------------------------------- |
32 // Create instance of concrete ECOM interface implementation |
31 // Create instance of concrete ECOM interface implementation |
33 CHtiPIMServicePlugin* CHtiPIMServicePlugin::NewL() |
32 CHtiPIMServicePlugin* CHtiPIMServicePlugin::NewL() |
34 { |
33 { |
85 } |
84 } |
86 else if ( aCommand < ECreateBookmark ) |
85 else if ( aCommand < ECreateBookmark ) |
87 { |
86 { |
88 if ( iSimDirHandler == NULL ) |
87 if ( iSimDirHandler == NULL ) |
89 { |
88 { |
90 iSimDirHandler = CHtiSimDirHandlerVPbk::NewL(); |
89 iSimDirHandler = CHtiSimDirHandler::NewL(); |
91 iSimDirHandler->SetDispatcher( iDispatcher ); |
90 iSimDirHandler->SetDispatcher( iDispatcher ); |
92 } |
91 } |
93 iSimDirHandler->ProcessMessageL( aMessage, aPriority ); |
92 iSimDirHandler->ProcessMessageL( aMessage, aPriority ); |
94 } |
93 } |
95 else |
94 else |
109 // ---------------------------------------------------------------------------- |
108 // ---------------------------------------------------------------------------- |
110 TBool CHtiPIMServicePlugin::IsBusy() |
109 TBool CHtiPIMServicePlugin::IsBusy() |
111 { |
110 { |
112 if ( iPimHandler ) |
111 if ( iPimHandler ) |
113 { |
112 { |
114 if ( iPimHandler->IsBusy() ) |
113 return iPimHandler->IsBusy(); |
115 return ETrue; |
|
116 } |
114 } |
117 if ( iSimDirHandler ) |
115 |
118 { |
|
119 if ( iSimDirHandler->IsBusy() ) |
|
120 return ETrue; |
|
121 } |
|
122 if ( iBookmarkHandler ) |
116 if ( iBookmarkHandler ) |
123 { |
117 { |
124 if ( iBookmarkHandler->IsBusy() ) |
118 return iBookmarkHandler->IsBusy(); |
125 return ETrue; |
119 } |
|
120 |
|
121 if( iSimDirHandler) |
|
122 { |
|
123 return iSimDirHandler->IsBusy(); |
126 } |
124 } |
127 return EFalse; |
125 return EFalse; |
128 } |
126 } |