tizen beta release
[framework/web/wrt-plugins-common.git] / src / modules / API / DEPRACATED / Telephony / ILogManager.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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  * @file        ILogManager.h
18  * @author      Lukasz Marek (l.marek@samsung.com)
19  * @version     0.1
20  */
21
22 #ifndef _ABSTRACT_LAYER_ILOG_MANAGER_H_
23 #define _ABSTRACT_LAYER_ILOG_MANAGER_H_
24
25 #include <dpl/shared_ptr.h>
26 #include "LogEntry.h"
27 #include "IEventClearLogs.h"
28 #include "IEventDeleteLogEntry.h"
29 #include "IEventFindLogEntries.h"
30 #include "IEventGetNumberOfLogs.h"
31
32 namespace WrtPlugins {
33 namespace Api {
34 typedef Platform::EventRequestReceiver< IEventGetNumberOfLogs >
35 EventRequestReceiverGetNumberOfLogs;
36 typedef Platform::EventRequestReceiver< IEventFindLogEntries >
37 EventRequestReceiverFindLogEntries;
38 typedef Platform::EventRequestReceiver< IEventDeleteLogEntry >
39 EventRequestReceiverDeleteLogEntry;
40 typedef Platform::EventRequestReceiver< IEventClearLog >
41 EventRequestReceiverClearLogs;
42
43 class ILogManager : public EventRequestReceiverGetNumberOfLogs,
44     public EventRequestReceiverFindLogEntries,
45     public EventRequestReceiverDeleteLogEntry,
46     public EventRequestReceiverClearLogs
47 {
48   public:
49     ILogManager();
50     virtual ~ILogManager();
51     virtual void         getNumberOfLogs(const IEventGetNumberOfLogsPtr &event);
52     virtual void         findLogEntries(const IEventFindLogEntriesPtr &event);
53     virtual void         deleteLogEntry(const IEventDeleteLogEntryPtr &event);
54     virtual void         clearLogs(const IEventClearLogPtr &event);
55   protected:
56     virtual void         OnRequestReceived(
57             const IEventGetNumberOfLogsPtr &event) = 0;
58     virtual void         OnRequestReceived(const IEventFindLogEntriesPtr &event)
59         = 0;
60     virtual void         OnRequestReceived(const IEventDeleteLogEntryPtr &event)
61         = 0;
62     virtual void         OnRequestReceived(const IEventClearLogPtr &event) = 0;
63 };
64
65 typedef DPL::SharedPtr<ILogManager> ILogManagerPtr;
66 }
67 }
68
69 #endif /* _ABSTRACT_LAYER_ILOG_MANAGER_H_ */