remove unnecessary codes
[framework/osp/appwidget-service.git] / inc / FShell_AppWidgetPopupContext.h
1 //
2 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
3 //
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
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        FShell_AppWidgetPopupContext.h
19  * @brief       This is the header file for the %_AppWidgetPopupContext class.
20  *
21  * This header file contains the declarations of the %_AppWidgetPopupContext class.
22  */
23
24 #ifndef _FSHELL_INTERNAL_APPWIDGET_POPUP_CONTEXT_H_
25 #define _FSHELL_INTERNAL_APPWIDGET_POPUP_CONTEXT_H_
26
27 #include "FShell_AppWidgetContextBase.h"
28
29 namespace Tizen { namespace Shell { namespace App
30 {
31
32 class _AppWidgetContext;
33
34 class _AppWidgetPopupContext
35          :public Tizen::Shell::App::_AppWidgetContextBase
36 {
37 public:
38         _AppWidgetPopupContext(const Tizen::Base::String& userInfo, const Tizen::Base::String& appId, const Tizen::Base::String& instanceId, int width, int height, int priority, _AppWidgetContext* pParent);
39         virtual ~_AppWidgetPopupContext(void);
40
41         // event handler
42         void OnPopupCreated(double x, double y, int width, int height);
43         void OnPopupDestoyed(void);
44
45         // request to app
46         result SendPopupCreateRequest(double x, double y, int width, int height);
47         result SendPopupDestroyRequest(void);
48         virtual result SendTouchEvent(buffer_event event, double timestamp, double x, double y);
49         result RequestUpdateRemote(void);
50
51 private:
52         virtual Tizen::Base::Collection::HashMap* CreateRequestArgsN(void);
53
54 private:
55         _AppWidgetContext* __pParent;
56
57 };      // class _AppWidgetPopupContext
58
59 }}}     // Tizen::Shell::App
60
61 #endif // _FSHELL_INTERNAL_APPWIDGET_POPUP_CONTEXT_H_