Cannot link boost libraries when building unit tests
[profile/tv/apps/web/browser.git] / services / QuickAccess / UrlHistoryList / WidgetListManager.h
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
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 #ifndef WIDGETLISTMANAGER_H_
18 #define WIDGETLISTMANAGER_H_
19
20 #include <memory>
21 #include <Evas.h>
22 #include "services/HistoryService/HistoryItem.h"
23
24 namespace tizen_browser
25 {
26 namespace services
27 {
28
29 /**
30  * Interface for classes managing list-like widgets.
31  * TODO: consider if it could be used in whole application, not only for URL
32  * list.
33  */
34 class WidgetListManager
35 {
36 public:
37         virtual ~WidgetListManager()
38         {
39         }
40         virtual Evas_Object* createWidget(Evas_Object* parentLayout) = 0;
41         virtual Evas_Object* getWidget() = 0;
42         virtual void hideWidget() = 0;
43         virtual void showWidget(const std::string& editedUrl,
44                         std::shared_ptr<services::HistoryItemVector> matchedEntries) = 0;
45         virtual void onMouseClick() = 0;
46 };
47
48 } /* namespace services */
49 } /* namespace tizen_browser */
50
51 #endif /* WIDGETLISTMANAGER_H_ */