/usr/include/scope-harness/view/results-view.h is in libscope-harness-dev 0.5.7+16.04.20160317-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | /*
* Copyright (C) 2014 Canonical, Ltd.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of version 3 of the GNU Lesser General Public License as published
* by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Author: Pete Woods <pete.woods@canonical.com>
*/
#pragma once
#include <unity/shell/scopes/ScopeInterface.h>
#include <scope-harness/view/preview-view.h>
#include <scope-harness/results/category.h>
#include <scope-harness/results/department.h>
#include <scope-harness/preview/preview-widget.h>
#include <scope-harness/view/settings-view.h>
#include <string>
#include <QVariantMap>
namespace scopes_ng
{
class Scopes;
}
namespace unity
{
namespace shell
{
namespace scopes
{
class CategoriesInterface;
}
}
namespace scopeharness
{
class ScopeHarness;
namespace internal
{
struct ResultsViewArguments;
}
namespace view
{
class PreviewView;
class Q_DECL_EXPORT ResultsView final: public AbstractView
{
public:
UNITY_DEFINES_PTRS(ResultsView);
ResultsView(const internal::ResultsViewArguments& arguments);
~ResultsView() = default;
ResultsView(const ResultsView& other) = delete;
ResultsView(ResultsView&& other) = delete;
ResultsView& operator=(const ResultsView& other) = delete;
ResultsView& operator=(ResultsView&& other) = delete;
void setQuery(const std::string& searchString);
std::string query() const;
void setActiveScope(const std::string& id);
std::string activeScope() const;
void waitForResultsChange();
bool overrideCategoryJson(std::string const& categoryId, std::string const& json);
std::string scopeId() const;
std::string displayName() const;
std::string iconHint() const;
std::string description() const;
std::string searchHint() const;
std::string shortcut() const;
unity::scopes::Variant customizations() const;
std::string sessionId() const;
int queryId() const;
void forceRefresh();
results::Category::List categories();
results::Category category(std::size_t row);
results::Category category(const std::string& categoryId);
unity::shell::scopes::ScopeInterface::Status status() const;
// Navigation
bool hasDepartments() const;
bool hasAltDepartments() const;
std::string departmentId() const;
std::string altDepartmentId() const;
results::Department browseDepartment(const std::string& id = std::string());
results::Department browseAltDepartment(const std::string& id = std::string());
SettingsView::SPtr settings() const;
protected:
friend ScopeHarness;
friend preview::PreviewWidget;
void setPreviewView(std::shared_ptr<PreviewView> previewView);
struct _Priv;
std::shared_ptr<_Priv> p;
};
}
}
}
|