diff options
Diffstat (limited to 'project/inc/TiltableImageViewer.h')
-rw-r--r-- | project/inc/TiltableImageViewer.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/project/inc/TiltableImageViewer.h b/project/inc/TiltableImageViewer.h new file mode 100644 index 0000000..f7ad1c9 --- /dev/null +++ b/project/inc/TiltableImageViewer.h @@ -0,0 +1,47 @@ +// +// Tizen C++ SDK +// Copyright (c) 2012 Samsung Electronics Co., Ltd. +// +// Licensed under the Flora License, Version 1.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.tizenopensource.org/license +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an AS IS BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#ifndef _TILTABLE_IMAGE_VIEWER_H_ +#define _TILTABLE_IMAGE_VIEWER_H_ + +#include <FApp.h> +#include <FSystem.h> + +class TiltableImageViewer + : public Tizen::App::Application + , public Tizen::System::IScreenEventListener +{ +public: + static Tizen::App::Application* CreateInstance(void); + + TiltableImageViewer(void); + virtual ~TiltableImageViewer(void); + + virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry); + virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false); + virtual void OnForeground(void); + virtual void OnBackground(void); + virtual void OnLowMemory(void); + + // Called when the screen turns on. + virtual void OnScreenOn(void); + + // Called when the screen turns off. + virtual void OnScreenOff(void); +}; + +#endif // _TILTABLE_IMAGE_VIEWER_H_ |