00001 // -*- c++ -*- 00002 00003 // generated code -- do not edit 00004 00005 #ifndef __UT_TELEPHONY_EPOC_H__ 00006 #define __UT_TELEPHONY_EPOC_H__ 00007 00008 #include "ac_app_context.h" 00009 #include "bb_blackboard.h" 00010 #include "er_errors.h" 00011 #include "ut_retry_epoc.hpp" 00012 #include <e32base.h> 00013 #include <etel3rdparty.h> 00014 #include <glib.h> 00015 00016 typedef CTelephony::TFlightModeV1 TData_FlightMode; 00017 00018 typedef CTelephony::TFlightModeV1Pckg TDataPckg_FlightMode; 00019 00020 class MGetterObs_FlightMode 00021 { 00022 public: 00023 00024 virtual void GotData_FlightMode(TInt aError) = 0; 00025 }; 00026 00027 NONSHARABLE_CLASS(CGetterAo_FlightMode) : 00028 public CActive 00029 { 00030 public: 00031 00032 CGetterAo_FlightMode(CTelephony &aTelephony, MGetterObs_FlightMode &aInterface); 00033 00034 virtual ~CGetterAo_FlightMode(); 00035 00036 void MakeRequest(); 00037 00038 private: 00039 00040 virtual void RunL(); 00041 00042 virtual void DoCancel(); 00043 00044 public: 00045 00046 inline CTelephony::TFlightModeV1 const &Data() const; 00047 00048 private: 00049 00050 CTelephony::TFlightModeV1 iData; 00051 00052 CTelephony::TFlightModeV1Pckg iDataDes; 00053 00054 CTelephony &iTelephony; 00055 00056 MGetterObs_FlightMode &iInterface; 00057 }; 00058 00059 typedef CTelephony::TFlightModeV1 TData_FlightMode; 00060 00061 typedef CTelephony::TFlightModeV1Pckg TDataPckg_FlightMode; 00062 00063 class MNotifyObs_FlightMode 00064 { 00065 public: 00066 00067 virtual void ChangedData_FlightMode(TInt aError) = 0; 00068 }; 00069 00070 NONSHARABLE_CLASS(CNotifyAo_FlightMode) : 00071 public CActive 00072 { 00073 public: 00074 00075 CNotifyAo_FlightMode(CTelephony &aTelephony, MNotifyObs_FlightMode &aInterface); 00076 00077 virtual ~CNotifyAo_FlightMode(); 00078 00079 void MakeRequest(); 00080 00081 private: 00082 00083 virtual void RunL(); 00084 00085 virtual void DoCancel(); 00086 00087 public: 00088 00089 inline CTelephony::TFlightModeV1 const &Data() const; 00090 00091 private: 00092 00093 CTelephony::TFlightModeV1 iData; 00094 00095 CTelephony::TFlightModeV1Pckg iDataDes; 00096 00097 CTelephony &iTelephony; 00098 00099 MNotifyObs_FlightMode &iInterface; 00100 }; 00101 00102 typedef CTelephony::TCallStatusV1 TData_CallStatus; 00103 00104 typedef CTelephony::TCallStatusV1Pckg TDataPckg_CallStatus; 00105 00106 class MNotifyObs_CallStatus 00107 { 00108 public: 00109 00110 virtual void ChangedData_CallStatus(TInt aError) = 0; 00111 }; 00112 00113 NONSHARABLE_CLASS(CNotifyAo_CallStatus) : 00114 public CActive 00115 { 00116 public: 00117 00118 CNotifyAo_CallStatus(CTelephony &aTelephony, MNotifyObs_CallStatus &aInterface); 00119 00120 virtual ~CNotifyAo_CallStatus(); 00121 00122 void MakeRequest(); 00123 00124 private: 00125 00126 virtual void RunL(); 00127 00128 virtual void DoCancel(); 00129 00130 public: 00131 00132 inline CTelephony::TCallStatusV1 const &Data() const; 00133 00134 private: 00135 00136 CTelephony::TCallStatusV1 iData; 00137 00138 CTelephony::TCallStatusV1Pckg iDataDes; 00139 00140 CTelephony &iTelephony; 00141 00142 MNotifyObs_CallStatus &iInterface; 00143 }; 00144 00145 typedef CTelephony::TBatteryInfoV1 TData_BatteryInfo; 00146 00147 typedef CTelephony::TBatteryInfoV1Pckg TDataPckg_BatteryInfo; 00148 00149 class MGetterObs_BatteryInfo 00150 { 00151 public: 00152 00153 virtual void GotData_BatteryInfo(TInt aError) = 0; 00154 }; 00155 00156 NONSHARABLE_CLASS(CGetterAo_BatteryInfo) : 00157 public CActive 00158 { 00159 public: 00160 00161 CGetterAo_BatteryInfo(CTelephony &aTelephony, MGetterObs_BatteryInfo &aInterface); 00162 00163 virtual ~CGetterAo_BatteryInfo(); 00164 00165 void MakeRequest(); 00166 00167 private: 00168 00169 virtual void RunL(); 00170 00171 virtual void DoCancel(); 00172 00173 public: 00174 00175 inline CTelephony::TBatteryInfoV1 const &Data() const; 00176 00177 private: 00178 00179 CTelephony::TBatteryInfoV1 iData; 00180 00181 CTelephony::TBatteryInfoV1Pckg iDataDes; 00182 00183 CTelephony &iTelephony; 00184 00185 MGetterObs_BatteryInfo &iInterface; 00186 }; 00187 00188 typedef CTelephony::TBatteryInfoV1 TData_BatteryInfo; 00189 00190 typedef CTelephony::TBatteryInfoV1Pckg TDataPckg_BatteryInfo; 00191 00192 class MNotifyObs_BatteryInfo 00193 { 00194 public: 00195 00196 virtual void ChangedData_BatteryInfo(TInt aError) = 0; 00197 }; 00198 00199 NONSHARABLE_CLASS(CNotifyAo_BatteryInfo) : 00200 public CActive 00201 { 00202 public: 00203 00204 CNotifyAo_BatteryInfo(CTelephony &aTelephony, MNotifyObs_BatteryInfo &aInterface); 00205 00206 virtual ~CNotifyAo_BatteryInfo(); 00207 00208 void MakeRequest(); 00209 00210 private: 00211 00212 virtual void RunL(); 00213 00214 virtual void DoCancel(); 00215 00216 public: 00217 00218 inline CTelephony::TBatteryInfoV1 const &Data() const; 00219 00220 private: 00221 00222 CTelephony::TBatteryInfoV1 iData; 00223 00224 CTelephony::TBatteryInfoV1Pckg iDataDes; 00225 00226 CTelephony &iTelephony; 00227 00228 MNotifyObs_BatteryInfo &iInterface; 00229 }; 00230 00231 typedef CTelephony::TSignalStrengthV1 TData_SignalStrength; 00232 00233 typedef CTelephony::TSignalStrengthV1Pckg TDataPckg_SignalStrength; 00234 00235 class MGetterObs_SignalStrength 00236 { 00237 public: 00238 00239 virtual void GotData_SignalStrength(TInt aError) = 0; 00240 }; 00241 00242 NONSHARABLE_CLASS(CGetterAo_SignalStrength) : 00243 public CActive 00244 { 00245 public: 00246 00247 CGetterAo_SignalStrength(CTelephony &aTelephony, MGetterObs_SignalStrength &aInterface); 00248 00249 virtual ~CGetterAo_SignalStrength(); 00250 00251 void MakeRequest(); 00252 00253 private: 00254 00255 virtual void RunL(); 00256 00257 virtual void DoCancel(); 00258 00259 public: 00260 00261 inline CTelephony::TSignalStrengthV1 const &Data() const; 00262 00263 private: 00264 00265 CTelephony::TSignalStrengthV1 iData; 00266 00267 CTelephony::TSignalStrengthV1Pckg iDataDes; 00268 00269 CTelephony &iTelephony; 00270 00271 MGetterObs_SignalStrength &iInterface; 00272 }; 00273 00274 typedef CTelephony::TSignalStrengthV1 TData_SignalStrength; 00275 00276 typedef CTelephony::TSignalStrengthV1Pckg TDataPckg_SignalStrength; 00277 00278 class MNotifyObs_SignalStrength 00279 { 00280 public: 00281 00282 virtual void ChangedData_SignalStrength(TInt aError) = 0; 00283 }; 00284 00285 NONSHARABLE_CLASS(CNotifyAo_SignalStrength) : 00286 public CActive 00287 { 00288 public: 00289 00290 CNotifyAo_SignalStrength(CTelephony &aTelephony, MNotifyObs_SignalStrength &aInterface); 00291 00292 virtual ~CNotifyAo_SignalStrength(); 00293 00294 void MakeRequest(); 00295 00296 private: 00297 00298 virtual void RunL(); 00299 00300 virtual void DoCancel(); 00301 00302 public: 00303 00304 inline CTelephony::TSignalStrengthV1 const &Data() const; 00305 00306 private: 00307 00308 CTelephony::TSignalStrengthV1 iData; 00309 00310 CTelephony::TSignalStrengthV1Pckg iDataDes; 00311 00312 CTelephony &iTelephony; 00313 00314 MNotifyObs_SignalStrength &iInterface; 00315 }; 00316 00317 typedef CTelephony::TNetworkRegistrationV1 TData_NetworkRegistration; 00318 00319 typedef CTelephony::TNetworkRegistrationV1Pckg TDataPckg_NetworkRegistration; 00320 00321 class MGetterObs_NetworkRegistration 00322 { 00323 public: 00324 00325 virtual void GotData_NetworkRegistration(TInt aError) = 0; 00326 }; 00327 00328 NONSHARABLE_CLASS(CGetterAo_NetworkRegistration) : 00329 public CActive 00330 { 00331 public: 00332 00333 CGetterAo_NetworkRegistration(CTelephony &aTelephony, MGetterObs_NetworkRegistration &aInterface); 00334 00335 virtual ~CGetterAo_NetworkRegistration(); 00336 00337 void MakeRequest(); 00338 00339 private: 00340 00341 virtual void RunL(); 00342 00343 virtual void DoCancel(); 00344 00345 public: 00346 00347 inline CTelephony::TNetworkRegistrationV1 const &Data() const; 00348 00349 private: 00350 00351 CTelephony::TNetworkRegistrationV1 iData; 00352 00353 CTelephony::TNetworkRegistrationV1Pckg iDataDes; 00354 00355 CTelephony &iTelephony; 00356 00357 MGetterObs_NetworkRegistration &iInterface; 00358 }; 00359 00360 typedef CTelephony::TNetworkRegistrationV1 TData_NetworkRegistration; 00361 00362 typedef CTelephony::TNetworkRegistrationV1Pckg TDataPckg_NetworkRegistration; 00363 00364 class MNotifyObs_NetworkRegistration 00365 { 00366 public: 00367 00368 virtual void ChangedData_NetworkRegistration(TInt aError) = 0; 00369 }; 00370 00371 NONSHARABLE_CLASS(CNotifyAo_NetworkRegistration) : 00372 public CActive 00373 { 00374 public: 00375 00376 CNotifyAo_NetworkRegistration(CTelephony &aTelephony, MNotifyObs_NetworkRegistration &aInterface); 00377 00378 virtual ~CNotifyAo_NetworkRegistration(); 00379 00380 void MakeRequest(); 00381 00382 private: 00383 00384 virtual void RunL(); 00385 00386 virtual void DoCancel(); 00387 00388 public: 00389 00390 inline CTelephony::TNetworkRegistrationV1 const &Data() const; 00391 00392 private: 00393 00394 CTelephony::TNetworkRegistrationV1 iData; 00395 00396 CTelephony::TNetworkRegistrationV1Pckg iDataDes; 00397 00398 CTelephony &iTelephony; 00399 00400 MNotifyObs_NetworkRegistration &iInterface; 00401 }; 00402 00403 typedef CTelephony::TNetworkInfoV1 TData_NetworkInfo; 00404 00405 typedef CTelephony::TNetworkInfoV1Pckg TDataPckg_NetworkInfo; 00406 00407 class MGetterObs_NetworkInfo 00408 { 00409 public: 00410 00411 virtual void GotData_NetworkInfo(TInt aError) = 0; 00412 }; 00413 00414 NONSHARABLE_CLASS(CGetterAo_NetworkInfo) : 00415 public CActive 00416 { 00417 public: 00418 00419 CGetterAo_NetworkInfo(CTelephony &aTelephony, MGetterObs_NetworkInfo &aInterface); 00420 00421 virtual ~CGetterAo_NetworkInfo(); 00422 00423 void MakeRequest(); 00424 00425 private: 00426 00427 virtual void RunL(); 00428 00429 virtual void DoCancel(); 00430 00431 public: 00432 00433 inline CTelephony::TNetworkInfoV1 const &Data() const; 00434 00435 private: 00436 00437 CTelephony::TNetworkInfoV1 iData; 00438 00439 CTelephony::TNetworkInfoV1Pckg iDataDes; 00440 00441 CTelephony &iTelephony; 00442 00443 MGetterObs_NetworkInfo &iInterface; 00444 }; 00445 00446 typedef CTelephony::TNetworkInfoV1 TData_NetworkInfo; 00447 00448 typedef CTelephony::TNetworkInfoV1Pckg TDataPckg_NetworkInfo; 00449 00450 class MNotifyObs_NetworkInfo 00451 { 00452 public: 00453 00454 virtual void ChangedData_NetworkInfo(TInt aError) = 0; 00455 }; 00456 00457 NONSHARABLE_CLASS(CNotifyAo_NetworkInfo) : 00458 public CActive 00459 { 00460 public: 00461 00462 CNotifyAo_NetworkInfo(CTelephony &aTelephony, MNotifyObs_NetworkInfo &aInterface); 00463 00464 virtual ~CNotifyAo_NetworkInfo(); 00465 00466 void MakeRequest(); 00467 00468 private: 00469 00470 virtual void RunL(); 00471 00472 virtual void DoCancel(); 00473 00474 public: 00475 00476 inline CTelephony::TNetworkInfoV1 const &Data() const; 00477 00478 private: 00479 00480 CTelephony::TNetworkInfoV1 iData; 00481 00482 CTelephony::TNetworkInfoV1Pckg iDataDes; 00483 00484 CTelephony &iTelephony; 00485 00486 MNotifyObs_NetworkInfo &iInterface; 00487 }; 00488 00489 class MObserverObs_SignalStrength 00490 { 00491 public: 00492 00493 virtual void ObservedData_SignalStrength(TData_SignalStrength const &aData) = 0; 00494 00495 virtual void ReportTransientError_SignalStrength(TInt aError) = 0; 00496 00497 virtual void RetriesExhausted_SignalStrength() = 0; 00498 00499 virtual void InFlightMode_SignalStrength() = 0; 00500 }; 00501 00502 NONSHARABLE_CLASS(CObserverAo_SignalStrength) : 00503 public CBase, 00504 public MGetterObs_SignalStrength, 00505 public MNotifyObs_SignalStrength, 00506 public MRetryAoObserver 00507 { 00508 public: 00509 00510 static CObserverAo_SignalStrength *NewLC(ac_AppContext *aAppContext, MObserverObs_SignalStrength &aInterface); 00511 00512 static CObserverAo_SignalStrength *NewL(ac_AppContext *aAppContext, MObserverObs_SignalStrength &aInterface); 00513 00514 private: 00515 00516 CObserverAo_SignalStrength(ac_AppContext *aAppContext, MObserverObs_SignalStrength &aInterface); 00517 00518 public: 00519 00520 virtual ~CObserverAo_SignalStrength(); 00521 00522 private: 00523 00524 ac_AppContext *iAppContext; 00525 00526 MObserverObs_SignalStrength &iInterface; 00527 00528 TBool iGetterDone; 00529 00530 CGetterAo_SignalStrength *iGetter; 00531 00532 CNotifyAo_SignalStrength *iNotifier; 00533 00534 CRetryAo *iRetryAo; 00535 00536 bb_Closure iClosure; 00537 00538 void ConstructL(); 00539 00540 void BbRegisterL(); 00541 00542 void BbUnregister(); 00543 00544 void MakeRequest(); 00545 00546 void Cancel(); 00547 00548 TBool GetFlightMode() const; 00549 00550 public: 00551 00552 void HandleFlightModeChange(); 00553 00554 private: 00555 00556 virtual void RetryTimerExpired(CRetryAo *, TInt aError); 00557 00558 virtual void GotData_SignalStrength(TInt aError); 00559 00560 virtual void ChangedData_SignalStrength(TInt aError); 00561 00562 void HandleData(TInt aError, TData_SignalStrength const &aData); 00563 }; 00564 00565 class MObserverObs_NetworkInfo 00566 { 00567 public: 00568 00569 virtual void ObservedData_NetworkInfo(TData_NetworkInfo const &aData) = 0; 00570 00571 virtual void ReportTransientError_NetworkInfo(TInt aError) = 0; 00572 00573 virtual void RetriesExhausted_NetworkInfo() = 0; 00574 00575 virtual void InFlightMode_NetworkInfo() = 0; 00576 }; 00577 00578 NONSHARABLE_CLASS(CObserverAo_NetworkInfo) : 00579 public CBase, 00580 public MGetterObs_NetworkInfo, 00581 public MNotifyObs_NetworkInfo, 00582 public MRetryAoObserver 00583 { 00584 public: 00585 00586 static CObserverAo_NetworkInfo *NewLC(ac_AppContext *aAppContext, MObserverObs_NetworkInfo &aInterface); 00587 00588 static CObserverAo_NetworkInfo *NewL(ac_AppContext *aAppContext, MObserverObs_NetworkInfo &aInterface); 00589 00590 private: 00591 00592 CObserverAo_NetworkInfo(ac_AppContext *aAppContext, MObserverObs_NetworkInfo &aInterface); 00593 00594 public: 00595 00596 virtual ~CObserverAo_NetworkInfo(); 00597 00598 private: 00599 00600 ac_AppContext *iAppContext; 00601 00602 MObserverObs_NetworkInfo &iInterface; 00603 00604 TBool iGetterDone; 00605 00606 CGetterAo_NetworkInfo *iGetter; 00607 00608 CNotifyAo_NetworkInfo *iNotifier; 00609 00610 CRetryAo *iRetryAo; 00611 00612 bb_Closure iClosure; 00613 00614 void ConstructL(); 00615 00616 void BbRegisterL(); 00617 00618 void BbUnregister(); 00619 00620 void MakeRequest(); 00621 00622 void Cancel(); 00623 00624 TBool GetFlightMode() const; 00625 00626 public: 00627 00628 void HandleFlightModeChange(); 00629 00630 private: 00631 00632 virtual void RetryTimerExpired(CRetryAo *, TInt aError); 00633 00634 virtual void GotData_NetworkInfo(TInt aError); 00635 00636 virtual void ChangedData_NetworkInfo(TInt aError); 00637 00638 void HandleData(TInt aError, TData_NetworkInfo const &aData); 00639 }; 00640 00641 class MObserverObs_NetworkRegistration 00642 { 00643 public: 00644 00645 virtual void ObservedData_NetworkRegistration(TData_NetworkRegistration const &aData) = 0; 00646 00647 virtual void Failed_NetworkRegistration(TInt aError) = 0; 00648 00649 virtual void InFlightMode_NetworkRegistration() = 0; 00650 }; 00651 00652 NONSHARABLE_CLASS(CObserverAo_NetworkRegistration) : 00653 public CBase, 00654 public MGetterObs_NetworkRegistration, 00655 public MNotifyObs_NetworkRegistration 00656 { 00657 public: 00658 00659 static CObserverAo_NetworkRegistration *NewLC(ac_AppContext *aAppContext, MObserverObs_NetworkRegistration &aInterface); 00660 00661 static CObserverAo_NetworkRegistration *NewL(ac_AppContext *aAppContext, MObserverObs_NetworkRegistration &aInterface); 00662 00663 private: 00664 00665 CObserverAo_NetworkRegistration(ac_AppContext *aAppContext, MObserverObs_NetworkRegistration &aInterface); 00666 00667 public: 00668 00669 virtual ~CObserverAo_NetworkRegistration(); 00670 00671 private: 00672 00673 ac_AppContext *iAppContext; 00674 00675 MObserverObs_NetworkRegistration &iInterface; 00676 00677 TBool iGetterDone; 00678 00679 CGetterAo_NetworkRegistration *iGetter; 00680 00681 CNotifyAo_NetworkRegistration *iNotifier; 00682 00683 bb_Closure iClosure; 00684 00685 void ConstructL(); 00686 00687 void BbRegisterL(); 00688 00689 void BbUnregister(); 00690 00691 void MakeRequest(); 00692 00693 void Cancel(); 00694 00695 TBool GetFlightMode() const; 00696 00697 public: 00698 00699 void HandleFlightModeChange(); 00700 00701 private: 00702 00703 virtual void GotData_NetworkRegistration(TInt aError); 00704 00705 virtual void ChangedData_NetworkRegistration(TInt aError); 00706 00707 void HandleData(TInt aError, TData_NetworkRegistration const &aData); 00708 }; 00709 00710 inline CTelephony::TFlightModeV1 const &CGetterAo_FlightMode::Data() const 00711 { 00712 return iData; 00713 } 00714 00715 inline CTelephony::TFlightModeV1 const &CNotifyAo_FlightMode::Data() const 00716 { 00717 return iData; 00718 } 00719 00720 inline CTelephony::TCallStatusV1 const &CNotifyAo_CallStatus::Data() const 00721 { 00722 return iData; 00723 } 00724 00725 inline CTelephony::TBatteryInfoV1 const &CGetterAo_BatteryInfo::Data() const 00726 { 00727 return iData; 00728 } 00729 00730 inline CTelephony::TBatteryInfoV1 const &CNotifyAo_BatteryInfo::Data() const 00731 { 00732 return iData; 00733 } 00734 00735 inline CTelephony::TSignalStrengthV1 const &CGetterAo_SignalStrength::Data() const 00736 { 00737 return iData; 00738 } 00739 00740 inline CTelephony::TSignalStrengthV1 const &CNotifyAo_SignalStrength::Data() const 00741 { 00742 return iData; 00743 } 00744 00745 inline CTelephony::TNetworkRegistrationV1 const &CGetterAo_NetworkRegistration::Data() const 00746 { 00747 return iData; 00748 } 00749 00750 inline CTelephony::TNetworkRegistrationV1 const &CNotifyAo_NetworkRegistration::Data() const 00751 { 00752 return iData; 00753 } 00754 00755 inline CTelephony::TNetworkInfoV1 const &CGetterAo_NetworkInfo::Data() const 00756 { 00757 return iData; 00758 } 00759 00760 inline CTelephony::TNetworkInfoV1 const &CNotifyAo_NetworkInfo::Data() const 00761 { 00762 return iData; 00763 } 00764 00765 #endif // __UT_TELEPHONY_EPOC_H__
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:57 2011 by Doxygen 1.6.1