2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file ChannelService.h
20 * @brief This is the header file of the Channel service daemon.
24 #ifndef _CHANNEL_SERVICE_H_
25 #define _CHANNEL_SERVICE_H_
32 namespace Tizen { namespace Io {
34 class _ChannelService;
35 class _ChannelServiceStub;
37 class _MessagePortService;
38 class _MessagePortStub;
43 * [ChannelService] ServiceApp must inherit from ServiceApp class
44 * which provides basic features necessary to define an ServiceApp.
47 : public Tizen::App::ServiceApp
52 * [ChannelService] ServiceApp must have a factory method that creates an instance of itself.
54 static Tizen::App::ServiceApp* CreateInstance(void);
63 // Called when the ServiceApp is initializing.
64 bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
66 // Called when the ServiceApp initializing is finished.
67 bool OnAppInitialized(void);
69 // Called when the ServiceApp is requested to terminate.
70 bool OnAppWillTerminate(void);
72 // Called when the ServiceApp is terminating.
73 bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
75 // Called when the system memory is not sufficient to run the ServiceApp any further.
76 void OnLowMemory(void);
79 Tizen::Io::_ChannelService* __pChannelService;
80 Tizen::Io::_ChannelServiceStub* __pChannelServiceStub;
82 Tizen::Io::_MessagePortService* __pMessagePortService;
83 Tizen::Io::_MessagePortStub* __pMessagePortStub;
86 #endif // _CHANNEL_SERVICE_H_