Changeset View
Changeset View
Standalone View
Standalone View
src/lib/opensearch/searchenginesmanager.h
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | 37 | public: | |||
---|---|---|---|---|---|
85 | 85 | | |||
86 | QString startingEngineName() { return m_startingEngineName; } | 86 | QString startingEngineName() { return m_startingEngineName; } | ||
87 | 87 | | |||
88 | void saveSettings(); | 88 | void saveSettings(); | ||
89 | void restoreDefaults(); | 89 | void restoreDefaults(); | ||
90 | 90 | | |||
91 | static QIcon iconForSearchEngine(const QUrl &url); | 91 | static QIcon iconForSearchEngine(const QUrl &url); | ||
92 | 92 | | |||
93 | QSet<QString> getAllEnginesNames(); | ||||
94 | | ||||
93 | Q_SIGNALS: | 95 | Q_SIGNALS: | ||
94 | void enginesChanged(); | 96 | void enginesChanged(); | ||
95 | void activeEngineChanged(); | 97 | void activeEngineChanged(); | ||
96 | void defaultEngineChanged(); | 98 | void defaultEngineChanged(); | ||
97 | 99 | | |||
98 | public Q_SLOTS: | 100 | public Q_SLOTS: | ||
99 | 101 | | |||
100 | private Q_SLOTS: | 102 | private Q_SLOTS: | ||
Show All 10 Lines | 108 | private: | |||
111 | bool m_settingsLoaded; | 113 | bool m_settingsLoaded; | ||
112 | bool m_saveScheduled; | 114 | bool m_saveScheduled; | ||
113 | 115 | | |||
114 | QString m_startingEngineName; | 116 | QString m_startingEngineName; | ||
115 | QString m_defaultEngineName; | 117 | QString m_defaultEngineName; | ||
116 | QVector<Engine> m_allEngines; | 118 | QVector<Engine> m_allEngines; | ||
117 | Engine m_activeEngine; | 119 | Engine m_activeEngine; | ||
118 | Engine m_defaultEngine; | 120 | Engine m_defaultEngine; | ||
121 | QSet<QString> m_allEnginesNames; | ||||
119 | }; | 122 | }; | ||
120 | 123 | | |||
121 | typedef SearchEnginesManager::Engine SearchEngine; | 124 | typedef SearchEnginesManager::Engine SearchEngine; | ||
122 | 125 | | |||
123 | // Hint to QVector to use std::realloc on item moving | 126 | // Hint to QVector to use std::realloc on item moving | ||
124 | Q_DECLARE_TYPEINFO(SearchEngine, Q_MOVABLE_TYPE); | 127 | Q_DECLARE_TYPEINFO(SearchEngine, Q_MOVABLE_TYPE); | ||
125 | 128 | | |||
126 | Q_DECLARE_METATYPE(SearchEngine) | 129 | Q_DECLARE_METATYPE(SearchEngine) | ||
127 | 130 | | |||
128 | #endif // SEARCHENGINESMANAGER_H | 131 | #endif // SEARCHENGINESMANAGER_H |