2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file IvImageViewerApp.h
19 * @brief This is the header file for ImageViewerApp class.
22 #ifndef _IV_IMAGE_VIEWER_APP_H_
23 #define _IV_IMAGE_VIEWER_APP_H_
29 : public Tizen::App::UiApp
30 , public Tizen::App::IAppControlProviderEventListener
31 , public Tizen::System::IDeviceEventListener
32 , public Tizen::System::ISettingEventListener
36 virtual~ImageViewerApp(void);
38 static Tizen::App::UiApp* CreateInstance(void);
40 Tizen::Base::String GetAppControlOperationId(void) const;
41 Tizen::Base::String GetUriData(void) const;
42 const Tizen::Base::Collection::IMap* GetAppControlArguments(void) const;
43 void SetFrameEnabled(bool isEnabled);
45 virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
46 virtual bool OnAppInitialized(void);
47 virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool isForcedTermination = false);
48 virtual void OnForeground(void);
50 virtual void OnAppControlRequestReceived(RequestId reqId, const Tizen::Base::String& operationId,
51 const Tizen::Base::String* pUriData, const Tizen::Base::String* pMimeType,
52 const Tizen::Base::Collection::IMap* pExtraData);
54 virtual void OnDeviceStateChanged(Tizen::System::DeviceType deviceType, const Tizen::Base::String& state);
56 virtual void OnSettingChanged(Tizen::Base::String& key);
58 void SendAppControlResult(const Tizen::App::AppCtrlResult appControlResult,
59 const Tizen::Base::Collection::IMap* pExtraData);
62 RequestId __requestId;
63 Tizen::Base::String __operationId;
64 Tizen::Base::String __uriData;
65 Tizen::App::AppCtrlResult __appControlResult;
66 const Tizen::Base::Collection::HashMap* __pArguments;
69 #endif /* _IV_IMAGE_VIEWER_APP_H_ */