2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.0 (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_
30 : public Tizen::App::UiApp
31 , public Tizen::App::IAppControlProviderEventListener
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;
44 virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
45 virtual bool OnAppInitialized(void);
46 virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
47 virtual void OnForeground(void);
49 virtual void OnAppControlRequestReceived(RequestId reqId, const Tizen::Base::String& operationId,
50 const Tizen::Base::String* pUriData, const Tizen::Base::String* pMimeType,
51 const Tizen::Base::Collection::IMap* pExtraData);
53 virtual void OnSettingChanged(Tizen::Base::String& key);
55 void SetFrameEnabled(bool enabled);
58 RequestId __requestId;
59 Tizen::Base::String __operationId;
60 Tizen::Base::String __uriData;
61 Tizen::App::AppCtrlResult __appControlResult;
62 const Tizen::Base::Collection::HashMap* __pArguments;
65 #endif /* _IV_IMAGE_VIEWER_APP_H_ */