00001 #ifndef __epoc_weburl_hpp__ 00002 #define __epoc_weburl_hpp__ 00003 00004 #include "application_config.h" 00005 00006 #if __WEBURL_ENABLED__ 00007 00008 #include "ac_app_context.h" 00009 #include "ld_log_db.h" 00010 #include "utils_cl2.h" 00011 00012 #include "epocxplat.hpp" 00013 00014 #include <badesca.h> 00015 00016 /***koog 00017 (require codegen/symbian-cxx) 00018 (ctor-defines/spec 00019 "CSensor_weburl" ;; name 00020 "ac_AppContext* aAppContext" ;; args 00021 "iAppContext(aAppContext)" ;; inits 00022 "" ;; ctor 00023 #t ;; ConstructL 00024 ) 00025 ***/ 00026 #define CTOR_DECL_CSensor_weburl \ 00027 public: static CSensor_weburl* NewLC(ac_AppContext* aAppContext); \ 00028 public: static CSensor_weburl* NewL(ac_AppContext* aAppContext); \ 00029 private: CSensor_weburl(ac_AppContext* aAppContext); \ 00030 private: void ConstructL(); 00031 00032 #define CTOR_IMPL_CSensor_weburl \ 00033 CSensor_weburl* CSensor_weburl::NewLC(ac_AppContext* aAppContext) \ 00034 { \ 00035 CSensor_weburl* obj = new (ELeave) CSensor_weburl(aAppContext); \ 00036 CleanupStack::PushL(obj); \ 00037 obj->ConstructL(); \ 00038 return obj; \ 00039 } \ 00040 \ 00041 CSensor_weburl* CSensor_weburl::NewL(ac_AppContext* aAppContext) \ 00042 { \ 00043 CSensor_weburl* obj = CSensor_weburl::NewLC(aAppContext); \ 00044 CleanupStack::Pop(obj); \ 00045 return obj; \ 00046 } \ 00047 \ 00048 CSensor_weburl::CSensor_weburl(ac_AppContext* aAppContext) : iAppContext(aAppContext) \ 00049 {} 00050 /***end***/ 00051 00052 NONSHARABLE_CLASS(CSensor_weburl) : 00053 public CBase, 00054 public epocxplat::AhleBrowser::MObserver 00055 { 00056 CTOR_DECL_CSensor_weburl; 00057 00058 public: 00059 virtual ~CSensor_weburl(); 00060 00061 private: 00062 ac_AppContext* iAppContext; // not owned 00063 00064 epocxplat::AhleBrowser::MNotifier* iAhle; // owned 00065 00066 CDesCArray* iOldUrlArray; // owned 00067 00068 private: // epocxplat::AhleBrowser::MObserver 00069 virtual void AhleBrowserError(TInt aError); 00070 virtual void AhleBrowserDataL(const TDesC& aName, const TDesC& aUrl); 00071 00072 private: 00073 LogDb* GetLogDb() const { return ac_LogDb(iAppContext); } 00074 00075 void LogDataL(); 00076 }; 00077 00078 #endif // __WEBURL_ENABLED__ 00079 00080 // -------------------------------------------------- 00081 // sensor array integration 00082 // -------------------------------------------------- 00083 00084 #if defined(SA_ARRAY_INTEGRATION) 00085 #if __WEBURL_ENABLED__ 00086 #define DECLARE_SENSOR_weburl CSensor_weburl* iSensor_weburl 00087 #define SENSOR_WEBURL_DESTROY DELETE_Z(self->iSensor_weburl) 00088 #define SENSOR_WEBURL_CREATE 00089 #define SENSOR_WEBURL_START sa_typical_symbian_sensor_create(self->iSensor_weburl = CSensor_weburl::NewL(self->ac), "weburl sensor initialization") 00090 #define SENSOR_WEBURL_STOP SENSOR_WEBURL_DESTROY 00091 #define SENSOR_WEBURL_IS_RUNNING (self->iSensor_weburl != NULL) 00092 #define SENSOR_WEBURL_RECONFIGURE(key, value) sa_reconfigure_ignore_all_keys 00093 #else 00094 #define DECLARE_SENSOR_weburl 00095 #endif 00096 #endif /* SA_ARRAY_INTEGRATION */ 00097 00098 #endif /* __epoc_weburl_hpp__ */ 00099 00100 /** 00101 00102 epoc-weburl.hpp 00103 00104 Copyright 2009-2010 Helsinki Institute for Information Technology 00105 (HIIT) and the authors. All rights reserved. 00106 00107 Authors: Tero Hasu <tero.hasu@hut.fi> 00108 00109 Permission is hereby granted, free of charge, to any person 00110 obtaining a copy of this software and associated documentation files 00111 (the "Software"), to deal in the Software without restriction, 00112 including without limitation the rights to use, copy, modify, merge, 00113 publish, distribute, sublicense, and/or sell copies of the Software, 00114 and to permit persons to whom the Software is furnished to do so, 00115 subject to the following conditions: 00116 00117 The above copyright notice and this permission notice shall be 00118 included in all copies or substantial portions of the Software. 00119 00120 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00121 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00122 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00123 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00124 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00125 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00126 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00127 SOFTWARE. 00128 00129 **/
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:52 2011 by Doxygen 1.6.1