0f0b4ade47cd3b62c4a3766d8e0aca1730b5377e
[apps/osp/ImageViewer.git] / inc / IvImageViewerApp.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://floralicense.org/license/
9 //
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.
15 //
16
17 /**
18  * @file                IvImageViewerApp.h
19  * @brief               This is the header file for ImageViewerApp class.
20  */
21
22 #ifndef _IV_IMAGE_VIEWER_APP_H_
23 #define _IV_IMAGE_VIEWER_APP_H_
24
25 #include <FApp.h>
26 #include <FBase.h>
27 #include <FSystem.h>
28
29 class ImageViewerApp
30         : public Tizen::App::UiApp
31         , public Tizen::App::IAppControlProviderEventListener
32         , public Tizen::System::ISettingEventListener
33 {
34 public:
35         ImageViewerApp(void);
36         virtual~ImageViewerApp(void);
37
38         static Tizen::App::UiApp* CreateInstance(void);
39
40         Tizen::Base::String GetAppControlOperationId(void) const;
41         Tizen::Base::String GetUriData(void) const;
42         const Tizen::Base::Collection::IMap* GetAppControlArguments(void) const;
43
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);
48
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);
52
53         virtual void OnSettingChanged(Tizen::Base::String& key);
54
55         void SetFrameEnabled(bool enabled);
56
57 private:
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;
63 };
64
65 #endif /* _IV_IMAGE_VIEWER_APP_H_ */