Tizen 2.1 base
[platform/framework/native/app-service.git] / inc / FApp_NotificationManagerStub.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file         FApp_NotificationManagerStub.h
20  * @brief       This is the header file of the _NotificationManagerStub class.
21  *
22  * This header file contains the declarations of the _NotificationManagerStub class.
23  */
24
25 #ifndef _FAPP_INTERNAL_NOTIFICATION_MANAGER_STUB_H_
26 #define _FAPP_INTERNAL_NOTIFICATION_MANAGER_STUB_H_
27
28
29 #include <FBaseObject.h>
30 #include <FBaseString.h>
31 #include <FAppTypes.h>
32 #include <FShellNotificationRequest.h>
33
34 #include <FIo_IIpcServerEventListener.h>
35
36
37 namespace Tizen { namespace App {
38
39 class _NotificationManagerService;
40
41 class _NotificationManagerStub :
42         public Tizen::Base::Object,
43         public Tizen::Io::_IIpcServerEventListener
44 {
45
46 public:
47         _NotificationManagerStub(void);
48         virtual ~_NotificationManagerStub(void);
49         result Construct(void);
50
51         // ipc handlers.
52         void OnNotifyMessage(const Tizen::App::AppId& appId, const Tizen::Shell::NotificationRequest& notimessage, bool OnGoing, result* pRes);
53         void OnRemoveNotification(const Tizen::App::AppId& appId, bool Ongoing, result* pRes);
54
55 private:
56         _NotificationManagerStub(const _NotificationManagerStub& value);
57         _NotificationManagerStub& operator =(const _NotificationManagerStub& source);
58
59         // _IIpcServerEventListener
60         virtual void OnIpcServerStarted(const Tizen::Io::_IpcServer& server);
61         virtual void OnIpcServerStopped(const Tizen::Io::_IpcServer& server);
62         virtual void OnIpcClientConnected(const Tizen::Io::_IpcServer& server, int clientId);
63         virtual void OnIpcClientDisconnected(const Tizen::Io::_IpcServer&server, int clientId);
64         virtual void OnIpcRequestReceived(Tizen::Io::_IpcServer& server, const IPC::Message& message);
65
66         // internal
67         result StartIpcServer(void);
68
69 private:
70         Tizen::Io::_IpcServer* __pIpcServer;
71         _NotificationManagerService* __pNotificationManagerService;
72 };      //_NotificationManagerStub
73
74 }} //Tizen::App
75
76 #endif // _FAPP_INTERNAL_NOTIFICATION_MANAGER_STUB_H_