summaryrefslogtreecommitdiff
path: root/lib/dialer/Search/ResultWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dialer/Search/ResultWidget.h')
-rw-r--r--lib/dialer/Search/ResultWidget.h103
1 files changed, 0 insertions, 103 deletions
diff --git a/lib/dialer/Search/ResultWidget.h b/lib/dialer/Search/ResultWidget.h
deleted file mode 100644
index fda0d2b..0000000
--- a/lib/dialer/Search/ResultWidget.h
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
- * Copyright 2012-2013 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __PHONE_DIALER_SEARCH_RESULT_WIDGET_H__
-#define __PHONE_DIALER_SEARCH_RESULT_WIDGET_H__
-
-#include <Elementary.h>
-#include "Search/Result.h"
-
-namespace Phone
-{
- namespace Dialer
- {
- namespace Search
- {
- /*
- * @brief Listener for search result widget events
- */
- class ResultWidgetListener
- {
- public:
- virtual ~ResultWidgetListener() { }
-
- /*
- * @brief Called when "Add to Contact" button is pressed
- */
- virtual void onAddToContacts() = 0;
-
- /*
- * @brief Called when displayed top search result is selected
- */
- virtual void onTopResultSelect() = 0;
-
- /*
- * @brief Called when show more results button is pressed
- */
- virtual void onShowMoreResults() = 0;
- };
-
- /*
- * @brief Displays information about last search
- * @details Displays top search result and number of results
- * on More Results button or "Add to Contacts" button if no results
- */
- class ResultWidget
- {
- public:
- ResultWidget();
- ~ResultWidget();
-
- /*
- * @brief Initialize widget.
- * @param layout Widget Edje layout
- */
- bool initialize(Evas_Object *layout);
-
- /*
- * @param listener Widget event listener
- */
- void setListener(ResultWidgetListener *listener);
-
- /*
- * @brief Set search result to be displayed by widget.
- * @param result Top search result
- */
- void setResult(const Result &result);
-
- /*
- * @brief Set search results count to be displayed on More Results button.
- * @param count Results count
- */
- void setResultCount(unsigned count);
-
- /*
- * @brief Hide widget
- */
- void hide();
-
- private:
- static void onLayoutEvent(void *data, Evas_Object *obj, const char *emission, const char *source);
-
- Evas_Object *m_Layout;
- Evas_Object *m_Icon;
- ResultWidgetListener *m_Listener;
- };
- }
- }
-}
-
-#endif /* __PHONE_DIALER_SEARCH_RESULT_WIDGET_H__ */