2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @author Lukasz Marek (l.marek@samsung.com)
22 #ifndef _ABSTRACT_LAYER_ILOG_MANAGER_H_
23 #define _ABSTRACT_LAYER_ILOG_MANAGER_H_
25 #include <dpl/shared_ptr.h>
27 #include "IEventClearLogs.h"
28 #include "IEventDeleteLogEntry.h"
29 #include "IEventFindLogEntries.h"
30 #include "IEventGetNumberOfLogs.h"
32 namespace WrtPlugins {
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;
43 class ILogManager : public EventRequestReceiverGetNumberOfLogs,
44 public EventRequestReceiverFindLogEntries,
45 public EventRequestReceiverDeleteLogEntry,
46 public EventRequestReceiverClearLogs
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);
56 virtual void OnRequestReceived(
57 const IEventGetNumberOfLogsPtr &event) = 0;
58 virtual void OnRequestReceived(const IEventFindLogEntriesPtr &event)
60 virtual void OnRequestReceived(const IEventDeleteLogEntryPtr &event)
62 virtual void OnRequestReceived(const IEventClearLogPtr &event) = 0;
65 typedef DPL::SharedPtr<ILogManager> ILogManagerPtr;
69 #endif /* _ABSTRACT_LAYER_ILOG_MANAGER_H_ */