Change namespace.

This commit is contained in:
iaom 2021-12-14 14:43:35 +08:00
parent cbc58b02df
commit e6cb935fc0
95 changed files with 158 additions and 158 deletions

View File

@ -34,7 +34,7 @@
#define BTN_FRAME_MARGINS 0,0,0,0 #define BTN_FRAME_MARGINS 0,0,0,0
#define CONTENT_MARGINS 32,0,32,24 #define CONTENT_MARGINS 32,0,32,24
using namespace Zeeker; using namespace UkuiSearch;
CreateIndexAskDialog::CreateIndexAskDialog(QWidget *parent) : QDialog(parent) { CreateIndexAskDialog::CreateIndexAskDialog(QWidget *parent) : QDialog(parent) {
// this->setWindowIcon(QIcon::fromTheme("kylin-search")); // this->setWindowIcon(QIcon::fromTheme("kylin-search"));
this->setWindowTitle(tr("ukui-search")); this->setWindowTitle(tr("ukui-search"));

View File

@ -33,7 +33,7 @@
#include <QApplication> #include <QApplication>
#include <QPainter> #include <QPainter>
namespace Zeeker { namespace UkuiSearch {
class CreateIndexAskDialog : public QDialog { class CreateIndexAskDialog : public QDialog {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -22,7 +22,7 @@
#include <QEvent> #include <QEvent>
#include <QDebug> #include <QDebug>
#include <QIcon> #include <QIcon>
using namespace Zeeker; using namespace UkuiSearch;
ShowMoreLabel::ShowMoreLabel(QWidget *parent) : QWidget(parent) { ShowMoreLabel::ShowMoreLabel(QWidget *parent) : QWidget(parent) {
initUi(); initUi();
m_timer = new QTimer; m_timer = new QTimer;

View File

@ -26,7 +26,7 @@
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QTimer> #include <QTimer>
namespace Zeeker { namespace UkuiSearch {
class ShowMoreLabel : public QWidget { class ShowMoreLabel : public QWidget {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -23,7 +23,7 @@
#include <QStyleOption> #include <QStyleOption>
#define UNFOLD_LABEL_HEIGHT 30 #define UNFOLD_LABEL_HEIGHT 30
#define NUM_LIMIT_SHOWN_DEFAULT 5 #define NUM_LIMIT_SHOWN_DEFAULT 5
using namespace Zeeker; using namespace UkuiSearch;
TitleLabel::TitleLabel(QWidget * parent) : QLabel(parent) { TitleLabel::TitleLabel(QWidget * parent) : QLabel(parent) {
initUi(); initUi();
initConnections(); initConnections();

View File

@ -25,7 +25,7 @@
#include "show-more-label.h" #include "show-more-label.h"
#include <QHBoxLayout> #include <QHBoxLayout>
namespace Zeeker { namespace UkuiSearch {
class TitleLabel : public QLabel { class TitleLabel : public QLabel {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -24,7 +24,7 @@
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed); extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed);
QT_END_NAMESPACE QT_END_NAMESPACE
using namespace Zeeker; using namespace UkuiSearch;
/** /**
* @brief UKuiSearchLineEdit * @brief UKuiSearchLineEdit
*/ */

View File

@ -36,7 +36,7 @@
#include <QProxyStyle> #include <QProxyStyle>
#include "global-settings.h" #include "global-settings.h"
namespace Zeeker { namespace UkuiSearch {
class SearchLineEdit : public QLineEdit { class SearchLineEdit : public QLineEdit {
Q_OBJECT Q_OBJECT

View File

@ -28,7 +28,7 @@
#include "global-settings.h" #include "global-settings.h"
#include "file-utils.h" #include "file-utils.h"
using namespace Zeeker; using namespace UkuiSearch;
extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed); extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed);
SettingsWidget::SettingsWidget(QWidget *parent) : QWidget(parent) { SettingsWidget::SettingsWidget(QWidget *parent) : QWidget(parent) {
// this->setWindowIcon(QIcon::fromTheme("kylin-search")); // this->setWindowIcon(QIcon::fromTheme("kylin-search"));

View File

@ -37,7 +37,7 @@
#include "xatom-helper.h" #include "xatom-helper.h"
#endif #endif
namespace Zeeker { namespace UkuiSearch {
class FolderListItem : public QWidget { class FolderListItem : public QWidget {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -21,7 +21,7 @@
#include "search-page-section.h" #include "search-page-section.h"
#include <QDebug> #include <QDebug>
#include <QScrollBar> #include <QScrollBar>
using namespace Zeeker; using namespace UkuiSearch;
#define RESULT_LAYOUT_MARGINS 0,0,0,0 #define RESULT_LAYOUT_MARGINS 0,0,0,0
#define RESULT_BACKGROUND_COLOR QColor(0, 0, 0, 0) #define RESULT_BACKGROUND_COLOR QColor(0, 0, 0, 0)

View File

@ -29,7 +29,7 @@
#include "best-list-view.h" #include "best-list-view.h"
#include "web-search-view.h" #include "web-search-view.h"
namespace Zeeker { namespace UkuiSearch {
class ResultArea : public QScrollArea class ResultArea : public QScrollArea
{ {
Q_OBJECT Q_OBJECT

View File

@ -22,7 +22,7 @@
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed); extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed);
QT_END_NAMESPACE QT_END_NAMESPACE
using namespace Zeeker; using namespace UkuiSearch;
#define RESULT_WIDTH 266 #define RESULT_WIDTH 266
#define DETAIL_WIDTH 374 #define DETAIL_WIDTH 374

View File

@ -24,7 +24,7 @@
#include <QSplitter> #include <QSplitter>
#include "search-page-section.h" #include "search-page-section.h"
namespace Zeeker { namespace UkuiSearch {
class SearchResultPage : public QWidget class SearchResultPage : public QWidget
{ {
Q_OBJECT Q_OBJECT

View File

@ -41,7 +41,7 @@
#include "plugin-manager.h" #include "plugin-manager.h"
#include <X11/Xlib.h> #include <X11/Xlib.h>
using namespace Zeeker; using namespace UkuiSearch;
void messageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg) void messageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{ {

View File

@ -51,7 +51,7 @@
#define ASK_INDEX_TIME 5*1000 #define ASK_INDEX_TIME 5*1000
#define RESEARCH_TIME 10*1000 #define RESEARCH_TIME 10*1000
using namespace Zeeker; using namespace UkuiSearch;
extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed); extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed);
/** /**
* @brief MainWindow * @brief MainWindow

View File

@ -58,7 +58,7 @@
#include "settings-widget.h" #include "settings-widget.h"
#endif #endif
namespace Zeeker { namespace UkuiSearch {
class SearchResult; class SearchResult;
class MainWindow : public QMainWindow { class MainWindow : public QMainWindow {
friend class SearchResult; friend class SearchResult;

View File

@ -20,7 +20,7 @@
*/ */
#include "best-list-model.h" #include "best-list-model.h"
#include "search-plugin-manager.h" #include "search-plugin-manager.h"
using namespace Zeeker; using namespace UkuiSearch;
BestListModel::BestListModel(QObject *parent) BestListModel::BestListModel(QObject *parent)
: QAbstractItemModel(parent) : QAbstractItemModel(parent)

View File

@ -6,7 +6,7 @@
#define NUM_LIMIT_SHOWN_DEFAULT 5 #define NUM_LIMIT_SHOWN_DEFAULT 5
namespace Zeeker { namespace UkuiSearch {
class BestListModel : public QAbstractItemModel class BestListModel : public QAbstractItemModel
{ {
Q_OBJECT Q_OBJECT

View File

@ -20,7 +20,7 @@
*/ */
#include "search-result-manager.h" #include "search-result-manager.h"
using namespace Zeeker; using namespace UkuiSearch;
SearchResultManager::SearchResultManager(const QString& plugin_id, QObject *parent) : QObject(parent) SearchResultManager::SearchResultManager(const QString& plugin_id, QObject *parent) : QObject(parent)
{ {
m_plugin_id = plugin_id; m_plugin_id = plugin_id;

View File

@ -27,7 +27,7 @@
#include <QDebug> #include <QDebug>
#include "pluginmanage/search-plugin-manager.h" #include "pluginmanage/search-plugin-manager.h"
namespace Zeeker { namespace UkuiSearch {
class ReceiveResultThread : public QThread { class ReceiveResultThread : public QThread {
Q_OBJECT Q_OBJECT

View File

@ -19,7 +19,7 @@
* *
*/ */
#include "search-result-model.h" #include "search-result-model.h"
using namespace Zeeker; using namespace UkuiSearch;
SearchResultModel::SearchResultModel(const QString &plugin_id) SearchResultModel::SearchResultModel(const QString &plugin_id)
{ {

View File

@ -25,7 +25,7 @@
#define NUM_LIMIT_SHOWN_DEFAULT 5 #define NUM_LIMIT_SHOWN_DEFAULT 5
namespace Zeeker { namespace UkuiSearch {
class SearchResultItem : public QObject { class SearchResultItem : public QObject {
friend class SearchResultModel; friend class SearchResultModel;

View File

@ -21,7 +21,7 @@
#include "web-search-model.h" #include "web-search-model.h"
#include <QDebug> #include <QDebug>
using namespace Zeeker; using namespace UkuiSearch;
WebSearchModel::WebSearchModel(QObject *parent) WebSearchModel::WebSearchModel(QObject *parent)
: QAbstractItemModel(parent) : QAbstractItemModel(parent)
{ {

View File

@ -6,7 +6,7 @@
#include <QLabel> #include <QLabel>
#include "search-result-model.h" #include "search-result-model.h"
namespace Zeeker { namespace UkuiSearch {
class WebSearchModel : public QAbstractItemModel class WebSearchModel : public QAbstractItemModel
{ {
Q_OBJECT Q_OBJECT

View File

@ -1,6 +1,6 @@
#include "ukui-search-dbus-service.h" #include "ukui-search-dbus-service.h"
using namespace Zeeker; using namespace UkuiSearch;
void UkuiSearchDbusServices::showWindow(){ void UkuiSearchDbusServices::showWindow(){
qDebug() << "showWindow called"; qDebug() << "showWindow called";
m_mainWindow->bootOptionsFilter("-s"); m_mainWindow->bootOptionsFilter("-s");

View File

@ -6,7 +6,7 @@
#include "mainwindow.h" #include "mainwindow.h"
namespace Zeeker { namespace UkuiSearch {
class UkuiSearchDbusServices: public QObject{ class UkuiSearchDbusServices: public QObject{
Q_OBJECT Q_OBJECT

View File

@ -5,7 +5,7 @@
#define UNFOLD_LABEL_HEIGHT 30 #define UNFOLD_LABEL_HEIGHT 30
#define VIEW_ICON_SIZE 24 #define VIEW_ICON_SIZE 24
using namespace Zeeker; using namespace UkuiSearch;
BestListView::BestListView(QWidget *parent) : QTreeView(parent) BestListView::BestListView(QWidget *parent) : QTreeView(parent)
{ {
this->setFrameShape(QFrame::NoFrame); this->setFrameShape(QFrame::NoFrame);

View File

@ -10,7 +10,7 @@
#include "title-label.h" #include "title-label.h"
#include "result-view-delegate.h" #include "result-view-delegate.h"
namespace Zeeker { namespace UkuiSearch {
class BestListView : public QTreeView class BestListView : public QTreeView
{ {

View File

@ -1,5 +1,5 @@
#include "result-view-delegate.h" #include "result-view-delegate.h"
using namespace Zeeker; using namespace UkuiSearch;
ResultViewDelegate::ResultViewDelegate(QObject *parent) : QStyledItemDelegate(parent) ResultViewDelegate::ResultViewDelegate(QObject *parent) : QStyledItemDelegate(parent)
{ {

View File

@ -28,7 +28,7 @@
#include <QAbstractTextDocumentLayout> #include <QAbstractTextDocumentLayout>
#include "global-settings.h" #include "global-settings.h"
namespace Zeeker { namespace UkuiSearch {
class ResultViewDelegate : public QStyledItemDelegate { class ResultViewDelegate : public QStyledItemDelegate {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -5,7 +5,7 @@
#define UNFOLD_LABEL_HEIGHT 30 #define UNFOLD_LABEL_HEIGHT 30
#define VIEW_ICON_SIZE 24 #define VIEW_ICON_SIZE 24
using namespace Zeeker; using namespace UkuiSearch;
ResultWidget::ResultWidget(const QString &plugin_id, QWidget *parent) : QWidget(parent) ResultWidget::ResultWidget(const QString &plugin_id, QWidget *parent) : QWidget(parent)
{ {
m_plugin_id = plugin_id; m_plugin_id = plugin_id;

View File

@ -10,7 +10,7 @@
#include "title-label.h" #include "title-label.h"
#include "result-view-delegate.h" #include "result-view-delegate.h"
namespace Zeeker { namespace UkuiSearch {
class ResultView : public QTreeView class ResultView : public QTreeView
{ {

View File

@ -24,7 +24,7 @@
#define TITLE_HEIGHT 30 #define TITLE_HEIGHT 30
#define VIEW_ICON_SIZE 24 #define VIEW_ICON_SIZE 24
using namespace Zeeker; using namespace UkuiSearch;
WebSearchView::WebSearchView(QWidget *parent) : QTreeView(parent) WebSearchView::WebSearchView(QWidget *parent) : QTreeView(parent)
{ {
this->setFrameShape(QFrame::NoFrame); this->setFrameShape(QFrame::NoFrame);

View File

@ -7,7 +7,7 @@
#include "result-view-delegate.h" #include "result-view-delegate.h"
#include "title-label.h" #include "title-label.h"
namespace Zeeker { namespace UkuiSearch {
class WebSearchView : public QTreeView class WebSearchView : public QTreeView
{ {
Q_OBJECT Q_OBJECT

View File

@ -24,7 +24,7 @@
#include "file-utils.h" #include "file-utils.h"
#include "app-search-plugin.h" #include "app-search-plugin.h"
#define ANDROID_APP_DESKTOP_PATH QDir::homePath() + "/.local/share/applications/" #define ANDROID_APP_DESKTOP_PATH QDir::homePath() + "/.local/share/applications/"
using namespace Zeeker; using namespace UkuiSearch;
static AppMatch *app_match_Class = nullptr; static AppMatch *app_match_Class = nullptr;
AppMatch *AppMatch::getAppMatch() { AppMatch *AppMatch::getAppMatch() {

View File

@ -29,7 +29,7 @@
#include <QtDBus> #include <QtDBus>
#include <QThread> #include <QThread>
#include "search-plugin-iface.h" #include "search-plugin-iface.h"
namespace Zeeker { namespace UkuiSearch {
class NameString { class NameString {
public: public:
explicit NameString(const QString &str_) : app_name(str_) {} explicit NameString(const QString &str_) : app_name(str_) {}

View File

@ -3,7 +3,7 @@
#include <QWidget> #include <QWidget>
#include <QLabel> #include <QLabel>
#include "file-utils.h" #include "file-utils.h"
using namespace Zeeker; using namespace UkuiSearch;
size_t AppSearchPlugin::uniqueSymbol = 0; size_t AppSearchPlugin::uniqueSymbol = 0;
QMutex AppSearchPlugin::m_mutex; QMutex AppSearchPlugin::m_mutex;
AppSearchPlugin::AppSearchPlugin(QObject *parent) : QObject(parent) AppSearchPlugin::AppSearchPlugin(QObject *parent) : QObject(parent)

View File

@ -12,7 +12,7 @@
#include "app-match.h" #include "app-match.h"
#include "action-label.h" #include "action-label.h"
#include "libsearch_global.h" #include "libsearch_global.h"
namespace Zeeker { namespace UkuiSearch {
class LIBSEARCH_EXPORT AppSearchPlugin : public QObject, public SearchPluginIface class LIBSEARCH_EXPORT AppSearchPlugin : public QObject, public SearchPluginIface
{ {
friend class AppSearch; friend class AppSearch;

View File

@ -28,7 +28,7 @@
#include <QDomDocument> #include <QDomDocument>
#include "gobject-template.h" #include "gobject-template.h"
using namespace Zeeker; using namespace UkuiSearch;
size_t FileUtils::_max_index_count = 0; size_t FileUtils::_max_index_count = 0;
size_t FileUtils::_current_index_count = 0; size_t FileUtils::_current_index_count = 0;
unsigned short FileUtils::indexStatus = 0; unsigned short FileUtils::indexStatus = 0;

View File

@ -59,7 +59,7 @@
//#define CREATING_INDEX 1 //#define CREATING_INDEX 1
//#define FINISH_CREATING_INDEX 2 //#define FINISH_CREATING_INDEX 2
#define MAX_CONTENT_LENGTH 20480000 #define MAX_CONTENT_LENGTH 20480000
namespace Zeeker { namespace UkuiSearch {
class LIBSEARCH_EXPORT FileUtils { class LIBSEARCH_EXPORT FileUtils {
public: public:
static QString getHtmlText(const QString & text, const QString & keyword); static QString getHtmlText(const QString & text, const QString & keyword);

View File

@ -22,7 +22,7 @@
#include <QPalette> #include <QPalette>
#include "global-settings.h" #include "global-settings.h"
using namespace Zeeker; using namespace UkuiSearch;
static GlobalSettings *global_instance_of_global_settings = nullptr; static GlobalSettings *global_instance_of_global_settings = nullptr;
GlobalSettings *GlobalSettings::getInstance() { GlobalSettings *GlobalSettings::getInstance() {

View File

@ -57,7 +57,7 @@
//#define CLOUD_HISTORY "history" //#define CLOUD_HISTORY "history"
//#define CLOUD_APPLICATIONS "applications" //#define CLOUD_APPLICATIONS "applications"
namespace Zeeker { namespace UkuiSearch {
class LIBSEARCH_EXPORT GlobalSettings : public QObject { class LIBSEARCH_EXPORT GlobalSettings : public QObject {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -26,7 +26,7 @@
//extern QList<Document> *g_docListForPath; //extern QList<Document> *g_docListForPath;
//extern QMutex g_mutexDocListForPath; //extern QMutex g_mutexDocListForPath;
using namespace Zeeker; using namespace UkuiSearch;
ConstructDocumentForPath::ConstructDocumentForPath(QVector<QString> list) { ConstructDocumentForPath::ConstructDocumentForPath(QVector<QString> list) {
this->setAutoDelete(true); this->setAutoDelete(true);
m_list = std::move(list); m_list = std::move(list);
@ -34,8 +34,8 @@ ConstructDocumentForPath::ConstructDocumentForPath(QVector<QString> list) {
void ConstructDocumentForPath::run() { void ConstructDocumentForPath::run() {
// qDebug()<<"ConstructDocumentForPath"; // qDebug()<<"ConstructDocumentForPath";
// if(!Zeeker::g_docListForPath) // if(!UkuiSearch::g_docListForPath)
// Zeeker::g_docListForPath = new QVector<Document>; // UkuiSearch::g_docListForPath = new QVector<Document>;
// qDebug()<<g_docListForPath->size(); // qDebug()<<g_docListForPath->size();
QString index_text = m_list.at(0).toLower(); QString index_text = m_list.at(0).toLower();
QString sourcePath = m_list.at(1); QString sourcePath = m_list.at(1);

View File

@ -26,7 +26,7 @@
#include "document.h" #include "document.h"
#include "index-generator.h" #include "index-generator.h"
namespace Zeeker { namespace UkuiSearch {
class IndexGenerator; class IndexGenerator;
class ConstructDocumentForPath : public QRunnable { class ConstructDocumentForPath : public QRunnable {

View File

@ -19,7 +19,7 @@
*/ */
#include "document.h" #include "document.h"
#include <QDebug> #include <QDebug>
using namespace Zeeker; using namespace UkuiSearch;
void Document::setData(QString &data) { void Document::setData(QString &data) {
if(data.isEmpty()) if(data.isEmpty())
return; return;

View File

@ -24,7 +24,7 @@
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#include <QVector> #include <QVector>
namespace Zeeker { namespace UkuiSearch {
class Document { class Document {
public: public:
Document() = default; Document() = default;

View File

@ -20,7 +20,7 @@
#include "file-reader.h" #include "file-reader.h"
#include "file-utils.h" #include "file-utils.h"
#include "binary-parser.h" #include "binary-parser.h"
using namespace Zeeker; using namespace UkuiSearch;
FileReader::FileReader(QObject *parent) : QObject(parent) { FileReader::FileReader(QObject *parent) : QObject(parent) {
} }

View File

@ -22,7 +22,7 @@
#include <QObject> #include <QObject>
#include <QFileInfo> #include <QFileInfo>
namespace Zeeker { namespace UkuiSearch {
class FileReader : public QObject { class FileReader : public QObject {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -4,7 +4,7 @@
#include <QLabel> #include <QLabel>
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QMessageBox> #include <QMessageBox>
using namespace Zeeker; using namespace UkuiSearch;
FileSearchPlugin::FileSearchPlugin(QObject *parent) : QObject(parent) FileSearchPlugin::FileSearchPlugin(QObject *parent) : QObject(parent)
{ {
@ -32,7 +32,7 @@ QString FileSearchPlugin::getPluginName()
return tr("File Search"); return tr("File Search");
} }
void Zeeker::FileSearchPlugin::KeywordSearch(QString keyword, DataQueue<ResultInfo> *searchResult) void UkuiSearch::FileSearchPlugin::KeywordSearch(QString keyword, DataQueue<ResultInfo> *searchResult)
{ {
SearchManager::m_mutexFile.lock(); SearchManager::m_mutexFile.lock();
++SearchManager::uniqueSymbolFile; ++SearchManager::uniqueSymbolFile;
@ -239,7 +239,7 @@ QString DirSearchPlugin::getPluginName()
return tr("Dir Search"); return tr("Dir Search");
} }
void Zeeker::DirSearchPlugin::KeywordSearch(QString keyword, DataQueue<ResultInfo> *searchResult) void UkuiSearch::DirSearchPlugin::KeywordSearch(QString keyword, DataQueue<ResultInfo> *searchResult)
{ {
SearchManager::m_mutexDir.lock(); SearchManager::m_mutexDir.lock();
++SearchManager::uniqueSymbolDir; ++SearchManager::uniqueSymbolDir;
@ -419,7 +419,7 @@ QString FileContengSearchPlugin::getPluginName()
return tr("File content search"); return tr("File content search");
} }
void Zeeker::FileContengSearchPlugin::KeywordSearch(QString keyword, DataQueue<ResultInfo> *searchResult) void UkuiSearch::FileContengSearchPlugin::KeywordSearch(QString keyword, DataQueue<ResultInfo> *searchResult)
{ {
SearchManager::m_mutexContent.lock(); SearchManager::m_mutexContent.lock();
++SearchManager::uniqueSymbolContent; ++SearchManager::uniqueSymbolContent;

View File

@ -14,7 +14,7 @@
#include "search-plugin-iface.h" #include "search-plugin-iface.h"
#include "common.h" #include "common.h"
#include "action-label.h" #include "action-label.h"
namespace Zeeker { namespace UkuiSearch {
//internal plugin //internal plugin
class LIBSEARCH_EXPORT FileSearchPlugin : public QObject, public SearchPluginIface class LIBSEARCH_EXPORT FileSearchPlugin : public QObject, public SearchPluginIface
{ {

View File

@ -24,7 +24,7 @@
#define NEW_QUEUE(a) a = new QQueue<QString>(); qDebug("---------------------------%s %s %s new at %d..",__FILE__,__FUNCTION__,#a,__LINE__); #define NEW_QUEUE(a) a = new QQueue<QString>(); qDebug("---------------------------%s %s %s new at %d..",__FILE__,__FUNCTION__,#a,__LINE__);
//#define DELETE_QUEUE(a ) //#define DELETE_QUEUE(a )
using namespace Zeeker; using namespace UkuiSearch;
FirstIndex::FirstIndex() { FirstIndex::FirstIndex() {
m_pool.setMaxThreadCount(2); m_pool.setMaxThreadCount(2);
m_pool.setExpiryTimeout(100); m_pool.setExpiryTimeout(100);

View File

@ -40,7 +40,7 @@
#include "index-generator.h" #include "index-generator.h"
#include "file-utils.h" #include "file-utils.h"
#include "common.h" #include "common.h"
namespace Zeeker { namespace UkuiSearch {
class FirstIndex : public QThread, public Traverse_BFS { class FirstIndex : public QThread, public Traverse_BFS {
public: public:
FirstIndex(); FirstIndex();

View File

@ -34,14 +34,14 @@
#define INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/index_data").toStdString() #define INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/index_data").toStdString()
#define CONTENT_INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/content_index_data").toStdString() #define CONTENT_INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/content_index_data").toStdString()
using namespace Zeeker; using namespace UkuiSearch;
static IndexGenerator *global_instance = nullptr; static IndexGenerator *global_instance = nullptr;
QMutex IndexGenerator::m_mutex; QMutex IndexGenerator::m_mutex;
//QVector<Document> *Zeeker::g_docListForPath; //QVector<Document> *UkuiSearch::g_docListForPath;
//QMutex Zeeker::g_mutexDocListForPath; //QMutex UkuiSearch::g_mutexDocListForPath;
//QVector<Document> *Zeeker::g_docListForContent; //QVector<Document> *UkuiSearch::g_docListForContent;
//QMutex Zeeker::g_mutexDocListForContent; //QMutex UkuiSearch::g_mutexDocListForContent;
QMutex IndexGenerator::g_mutexDocListForPath; QMutex IndexGenerator::g_mutexDocListForPath;
QMutex IndexGenerator::g_mutexDocListForContent; QMutex IndexGenerator::g_mutexDocListForContent;
QVector<Document> IndexGenerator::g_docListForPath = QVector<Document>(); QVector<Document> IndexGenerator::g_docListForPath = QVector<Document>();

View File

@ -36,7 +36,7 @@
#include "common.h" #include "common.h"
#include "pending-file.h" #include "pending-file.h"
namespace Zeeker { namespace UkuiSearch {
//extern QVector<Document> *_doc_list_path; //extern QVector<Document> *_doc_list_path;
//extern QMutex _mutex_doc_list_path; //extern QMutex _mutex_doc_list_path;
//extern QVector<Document> *_doc_list_content; //extern QVector<Document> *_doc_list_content;

View File

@ -1,6 +1,6 @@
#include "index-status-recorder.h" #include "index-status-recorder.h"
using namespace Zeeker; using namespace UkuiSearch;
static IndexStatusRecorder *global_instance_indexStatusRecorder = nullptr; static IndexStatusRecorder *global_instance_indexStatusRecorder = nullptr;
IndexStatusRecorder *IndexStatusRecorder::getInstance() IndexStatusRecorder *IndexStatusRecorder::getInstance()

View File

@ -10,7 +10,7 @@
#define INOTIFY_NORMAL_EXIT "inotify_normal_exit" #define INOTIFY_NORMAL_EXIT "inotify_normal_exit"
#define PENDING_FILE_QUEUE_FINISH "pending_file_queue_finish" #define PENDING_FILE_QUEUE_FINISH "pending_file_queue_finish"
#define INDEX_STATUS QDir::homePath() + "/.config/org.ukui/ukui-search/ukui-search-index-status.conf" #define INDEX_STATUS QDir::homePath() + "/.config/org.ukui/ukui-search/ukui-search-index-status.conf"
namespace Zeeker { namespace UkuiSearch {
//fixme: we need a better way to record index status. //fixme: we need a better way to record index status.
class IndexStatusRecorder : public QObject class IndexStatusRecorder : public QObject
{ {

View File

@ -2,10 +2,10 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <malloc.h> #include <malloc.h>
#include <errno.h> #include <errno.h>
using namespace Zeeker; using namespace UkuiSearch;
static InotifyWatch* global_instance_InotifyWatch = nullptr; static InotifyWatch* global_instance_InotifyWatch = nullptr;
Zeeker::InotifyWatch *Zeeker::InotifyWatch::getInstance(const QString &path) UkuiSearch::InotifyWatch *UkuiSearch::InotifyWatch::getInstance(const QString &path)
{ {
if(!global_instance_InotifyWatch) { if(!global_instance_InotifyWatch) {
global_instance_InotifyWatch = new InotifyWatch(path); global_instance_InotifyWatch = new InotifyWatch(path);
@ -13,7 +13,7 @@ Zeeker::InotifyWatch *Zeeker::InotifyWatch::getInstance(const QString &path)
return global_instance_InotifyWatch; return global_instance_InotifyWatch;
} }
Zeeker::InotifyWatch::InotifyWatch(const QString &path): Traverse_BFS(path) UkuiSearch::InotifyWatch::InotifyWatch(const QString &path): Traverse_BFS(path)
{ {
qDebug() << "setInotifyMaxUserWatches start"; qDebug() << "setInotifyMaxUserWatches start";
UkuiSearchQDBus usQDBus; UkuiSearchQDBus usQDBus;

View File

@ -15,7 +15,7 @@
#include "first-index.h" #include "first-index.h"
#include "pending-file-queue.h" #include "pending-file-queue.h"
#include "common.h" #include "common.h"
namespace Zeeker { namespace UkuiSearch {
class InotifyWatch : public QThread, public Traverse_BFS class InotifyWatch : public QThread, public Traverse_BFS
{ {
Q_OBJECT Q_OBJECT

View File

@ -20,7 +20,7 @@
#include "pending-file-queue.h" #include "pending-file-queue.h"
#include "file-utils.h" #include "file-utils.h"
#include <malloc.h> #include <malloc.h>
using namespace Zeeker; using namespace UkuiSearch;
static PendingFileQueue *global_instance_pending_file_queue = nullptr; static PendingFileQueue *global_instance_pending_file_queue = nullptr;
PendingFileQueue::PendingFileQueue(QObject *parent) : QThread(parent) PendingFileQueue::PendingFileQueue(QObject *parent) : QThread(parent)
{ {

View File

@ -28,7 +28,7 @@
#include "pending-file.h" #include "pending-file.h"
#include "index-generator.h" #include "index-generator.h"
namespace Zeeker { namespace UkuiSearch {
class PendingFileQueue : public QThread class PendingFileQueue : public QThread
{ {
Q_OBJECT Q_OBJECT

View File

@ -18,7 +18,7 @@
* *
*/ */
#include "pending-file.h" #include "pending-file.h"
using namespace Zeeker; using namespace UkuiSearch;
PendingFile::PendingFile(const QString &path) PendingFile::PendingFile(const QString &path)
: m_path(path) : m_path(path)
, m_deleted(false) , m_deleted(false)

View File

@ -22,7 +22,7 @@
#include <QString> #include <QString>
#include <QDebug> #include <QDebug>
namespace Zeeker { namespace UkuiSearch {
/** /**
* Represents a file/folder which needs to be indexed. * Represents a file/folder which needs to be indexed.
*/ */

View File

@ -18,7 +18,7 @@
* *
*/ */
#include "search-manager.h" #include "search-manager.h"
using namespace Zeeker; using namespace UkuiSearch;
size_t SearchManager::uniqueSymbolFile = 0; size_t SearchManager::uniqueSymbolFile = 0;
size_t SearchManager::uniqueSymbolDir = 0; size_t SearchManager::uniqueSymbolDir = 0;
size_t SearchManager::uniqueSymbolContent = 0; size_t SearchManager::uniqueSymbolContent = 0;

View File

@ -45,7 +45,7 @@
#define INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/index_data").toStdString() #define INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/index_data").toStdString()
#define CONTENT_INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/content_index_data").toStdString() #define CONTENT_INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/content_index_data").toStdString()
namespace Zeeker { namespace UkuiSearch {
class FileMatchDecider; class FileMatchDecider;
class FileContentMatchDecider; class FileContentMatchDecider;
class LIBSEARCH_EXPORT SearchManager : public QObject { class LIBSEARCH_EXPORT SearchManager : public QObject {
@ -77,7 +77,7 @@ Q_SIGNALS:
void resultContent(QQueue<QPair<QString, QStringList>> *); void resultContent(QQueue<QPair<QString, QStringList>> *);
private: private:
static bool isBlocked(QString &path); static bool isBlocked(QString &path);
static bool creatResultInfo(Zeeker::SearchPluginIface::ResultInfo &ri, QString path); static bool creatResultInfo(UkuiSearch::SearchPluginIface::ResultInfo &ri, QString path);
QThreadPool m_pool; QThreadPool m_pool;
}; };

View File

@ -1,5 +1,5 @@
#include "search-method-manager.h" #include "search-method-manager.h"
using namespace Zeeker; using namespace UkuiSearch;
static SearchMethodManager* global_instance = nullptr; static SearchMethodManager* global_instance = nullptr;
SearchMethodManager::SearchMethodManager() SearchMethodManager::SearchMethodManager()

View File

@ -4,7 +4,7 @@
#include "first-index.h" #include "first-index.h"
//#include "inotify-index.h" //#include "inotify-index.h"
#include "inotify-watch.h" #include "inotify-watch.h"
namespace Zeeker { namespace UkuiSearch {
class SearchMethodManager { class SearchMethodManager {
public: public:
static SearchMethodManager *getInstance(); static SearchMethodManager *getInstance();

View File

@ -18,7 +18,7 @@
* *
*/ */
#include "traverse_bfs.h" #include "traverse_bfs.h"
using namespace Zeeker; using namespace UkuiSearch;
Traverse_BFS::Traverse_BFS(const QString& path) { Traverse_BFS::Traverse_BFS(const QString& path) {
Q_ASSERT('/' == path.at(0)); Q_ASSERT('/' == path.at(0));
this->path = path; this->path = path;

View File

@ -24,7 +24,7 @@
#include <QDebug> #include <QDebug>
#include <QDir> #include <QDir>
#include <QQueue> #include <QQueue>
namespace Zeeker { namespace UkuiSearch {
class Traverse_BFS { class Traverse_BFS {
public: public:
Traverse_BFS() = default; Traverse_BFS() = default;

View File

@ -19,7 +19,7 @@
*/ */
#include "ukui-search-qdbus.h" #include "ukui-search-qdbus.h"
#include <QDebug> #include <QDebug>
using namespace Zeeker; using namespace UkuiSearch;
UkuiSearchQDBus::UkuiSearchQDBus() { UkuiSearchQDBus::UkuiSearchQDBus() {
this->tmpSystemQDBusInterface = new QDBusInterface("com.ukui.search.qt.systemdbus", this->tmpSystemQDBusInterface = new QDBusInterface("com.ukui.search.qt.systemdbus",
"/", "/",

View File

@ -22,7 +22,7 @@
#include <QDBusInterface> #include <QDBusInterface>
#include <QDBusReply> #include <QDBusReply>
namespace Zeeker { namespace UkuiSearch {
class UkuiSearchQDBus { class UkuiSearchQDBus {
public: public:
UkuiSearchQDBus(); UkuiSearchQDBus();

View File

@ -18,6 +18,6 @@
* *
*/ */
#include "libsearch.h" #include "libsearch.h"
using namespace Zeeker; using namespace UkuiSearch;
// Encapsulate advanced interfaces here. // Encapsulate advanced interfaces here.

View File

@ -33,7 +33,7 @@
#include "index/search-manager.h" #include "index/search-manager.h"
namespace Zeeker { namespace UkuiSearch {
//class LIBSEARCH_EXPORT GlobalSearch { //class LIBSEARCH_EXPORT GlobalSearch {
//public: //public:

View File

@ -4,7 +4,7 @@
#include <qt5xdg/xdgicon.h> #include <qt5xdg/xdgicon.h>
#include "file-utils.h" #include "file-utils.h"
#include "chinese-segmentation.h" #include "chinese-segmentation.h"
using namespace Zeeker; using namespace UkuiSearch;
NoteSearchPlugin::NoteSearchPlugin(QObject *parent) NoteSearchPlugin::NoteSearchPlugin(QObject *parent)
{ {

View File

@ -16,7 +16,7 @@
#include "search-plugin-iface.h" #include "search-plugin-iface.h"
#include "action-label.h" #include "action-label.h"
#include "libsearch_global.h" #include "libsearch_global.h"
namespace Zeeker { namespace UkuiSearch {
static size_t g_uniqueSymbol; static size_t g_uniqueSymbol;
static QMutex g_mutex; static QMutex g_mutex;

View File

@ -21,7 +21,7 @@
#define ACTION_NORMAL_COLOR QColor(55, 144, 250, 255) #define ACTION_NORMAL_COLOR QColor(55, 144, 250, 255)
#define ACTION_HOVER_COLOR QColor(64, 169, 251, 255) #define ACTION_HOVER_COLOR QColor(64, 169, 251, 255)
#define ACTION_PRESS_COLOR QColor(41, 108, 217, 255) #define ACTION_PRESS_COLOR QColor(41, 108, 217, 255)
using namespace Zeeker; using namespace UkuiSearch;
ActionLabel::ActionLabel(const QString &action, const QString &key, QWidget *parent) : QLabel(parent) ActionLabel::ActionLabel(const QString &action, const QString &key, QWidget *parent) : QLabel(parent)
{ {
m_action = action; m_action = action;

View File

@ -23,7 +23,7 @@
#include <QObject> #include <QObject>
#include <QLabel> #include <QLabel>
#include <QEvent> #include <QEvent>
namespace Zeeker { namespace UkuiSearch {
class ActionLabel : public QLabel class ActionLabel : public QLabel
{ {
Q_OBJECT Q_OBJECT

View File

@ -4,7 +4,7 @@
#include <QMutexLocker> #include <QMutexLocker>
#include <QList> #include <QList>
#include "libsearch_global.h" #include "libsearch_global.h"
namespace Zeeker { namespace UkuiSearch {
// TODO I want a unlocked queue // TODO I want a unlocked queue
template <typename T> template <typename T>
class LIBSEARCH_EXPORT DataQueue : public QList<T> class LIBSEARCH_EXPORT DataQueue : public QList<T>

View File

@ -1,7 +1,7 @@
#ifndef PLUGININTERFACE_H #ifndef PLUGININTERFACE_H
#define PLUGININTERFACE_H #define PLUGININTERFACE_H
namespace Zeeker { namespace UkuiSearch {
class PluginInterface class PluginInterface
{ {

View File

@ -10,7 +10,7 @@
#include "plugin-iface.h" #include "plugin-iface.h"
#include "data-queue.h" #include "data-queue.h"
namespace Zeeker { namespace UkuiSearch {
class SearchPluginIface : public PluginInterface class SearchPluginIface : public PluginInterface
{ {
public: public:
@ -47,6 +47,6 @@ public:
}; };
} }
Q_DECLARE_INTERFACE(Zeeker::SearchPluginIface, SearchPluginIface_iid) Q_DECLARE_INTERFACE(UkuiSearch::SearchPluginIface, SearchPluginIface_iid)
#endif // SEARCHPLUGINIFACE_H #endif // SEARCHPLUGINIFACE_H

View File

@ -1,7 +1,7 @@
#include "plugin-manager.h" #include "plugin-manager.h"
#include "search-plugin-manager.h" #include "search-plugin-manager.h"
using namespace Zeeker; using namespace UkuiSearch;
static PluginManager *global_instance = nullptr; static PluginManager *global_instance = nullptr;
void PluginManager::init() void PluginManager::init()

View File

@ -10,7 +10,7 @@
#include "plugininterface/plugin-iface.h" #include "plugininterface/plugin-iface.h"
#include "plugininterface/search-plugin-iface.h" #include "plugininterface/search-plugin-iface.h"
namespace Zeeker { namespace UkuiSearch {
class LIBSEARCH_EXPORT PluginManager : public QObject class LIBSEARCH_EXPORT PluginManager : public QObject
{ {
Q_OBJECT Q_OBJECT

View File

@ -6,7 +6,7 @@
#include "note-search-plugin.h" #include "note-search-plugin.h"
#include "web-search-plugin.h" #include "web-search-plugin.h"
using namespace Zeeker; using namespace UkuiSearch;
static SearchPluginManager *global_instance = nullptr; static SearchPluginManager *global_instance = nullptr;
SearchPluginManager::SearchPluginManager(QObject *parent) SearchPluginManager::SearchPluginManager(QObject *parent)
@ -20,7 +20,7 @@ SearchPluginManager::SearchPluginManager(QObject *parent)
registerPlugin(new WebSearchPlugin(this)); registerPlugin(new WebSearchPlugin(this));
} }
bool SearchPluginManager::registerPlugin(Zeeker::SearchPluginIface *plugin) bool SearchPluginManager::registerPlugin(UkuiSearch::SearchPluginIface *plugin)
{ {
if (m_map.end() != m_map.find(plugin->name())){ if (m_map.end() != m_map.find(plugin->name())){
return false; return false;

View File

@ -4,7 +4,7 @@
#include <QObject> #include <QObject>
#include "search-plugin-iface.h" #include "search-plugin-iface.h"
namespace Zeeker { namespace UkuiSearch {
class SearchPluginManager : public QObject class SearchPluginManager : public QObject
{ {

View File

@ -5,7 +5,7 @@
#include "settings-search-plugin.h" #include "settings-search-plugin.h"
#include "file-utils.h" #include "file-utils.h"
using namespace Zeeker; using namespace UkuiSearch;
static SettingsMatch * settingMatchClass = nullptr; static SettingsMatch * settingMatchClass = nullptr;
size_t SettingsSearchPlugin::m_uniqueSymbolForSettings = 0; size_t SettingsSearchPlugin::m_uniqueSymbolForSettings = 0;
QMutex SettingsSearchPlugin::m_mutex; QMutex SettingsSearchPlugin::m_mutex;
@ -35,7 +35,7 @@ QString SettingsSearchPlugin::getPluginName()
return tr("Settings Search"); return tr("Settings Search");
} }
void Zeeker::SettingsSearchPlugin::KeywordSearch(QString keyword, DataQueue<ResultInfo> *searchResult) void UkuiSearch::SettingsSearchPlugin::KeywordSearch(QString keyword, DataQueue<ResultInfo> *searchResult)
{ {
m_mutex.lock(); m_mutex.lock();
++m_uniqueSymbolForSettings; ++m_uniqueSymbolForSettings;

View File

@ -13,7 +13,7 @@
#include "action-label.h" #include "action-label.h"
#include "search-plugin-iface.h" #include "search-plugin-iface.h"
namespace Zeeker { namespace UkuiSearch {
class LIBSEARCH_EXPORT SettingsSearchPlugin : public QObject, public SearchPluginIface class LIBSEARCH_EXPORT SettingsSearchPlugin : public QObject, public SearchPluginIface
{ {
Q_OBJECT Q_OBJECT

View File

@ -1,7 +1,7 @@
#include "web-search-plugin.h" #include "web-search-plugin.h"
#include "global-settings.h" #include "global-settings.h"
using namespace Zeeker; using namespace UkuiSearch;
WebSearchPlugin::WebSearchPlugin(QObject *parent) : QObject(parent) WebSearchPlugin::WebSearchPlugin(QObject *parent) : QObject(parent)
{ {
SearchPluginIface::Actioninfo open { 0, tr("Start browser search")}; SearchPluginIface::Actioninfo open { 0, tr("Start browser search")};
@ -9,22 +9,22 @@ WebSearchPlugin::WebSearchPlugin(QObject *parent) : QObject(parent)
initDetailPage(); initDetailPage();
} }
const QString Zeeker::WebSearchPlugin::name() const QString UkuiSearch::WebSearchPlugin::name()
{ {
return "Web Page"; return "Web Page";
} }
const QString Zeeker::WebSearchPlugin::description() const QString UkuiSearch::WebSearchPlugin::description()
{ {
return tr("Web Page"); return tr("Web Page");
} }
QString Zeeker::WebSearchPlugin::getPluginName() QString UkuiSearch::WebSearchPlugin::getPluginName()
{ {
return tr("Web Page"); return tr("Web Page");
} }
void Zeeker::WebSearchPlugin::KeywordSearch(QString keyword, DataQueue<Zeeker::SearchPluginIface::ResultInfo> *searchResult) void UkuiSearch::WebSearchPlugin::KeywordSearch(QString keyword, DataQueue<UkuiSearch::SearchPluginIface::ResultInfo> *searchResult)
{ {
m_keyWord = keyword; m_keyWord = keyword;
ResultInfo resultInfo; ResultInfo resultInfo;
@ -35,12 +35,12 @@ void Zeeker::WebSearchPlugin::KeywordSearch(QString keyword, DataQueue<Zeeker::S
searchResult->enqueue(resultInfo); searchResult->enqueue(resultInfo);
} }
QList<Zeeker::SearchPluginIface::Actioninfo> Zeeker::WebSearchPlugin::getActioninfo(int type) QList<UkuiSearch::SearchPluginIface::Actioninfo> UkuiSearch::WebSearchPlugin::getActioninfo(int type)
{ {
return m_actionInfo; return m_actionInfo;
} }
void Zeeker::WebSearchPlugin::openAction(int actionkey, QString key, int type) void UkuiSearch::WebSearchPlugin::openAction(int actionkey, QString key, int type)
{ {
QString address; QString address;
QString engine = GlobalSettings::getInstance()->getValue("web_engine").toString(); QString engine = GlobalSettings::getInstance()->getValue("web_engine").toString();
@ -58,12 +58,12 @@ void Zeeker::WebSearchPlugin::openAction(int actionkey, QString key, int type)
QDesktopServices::openUrl(address); QDesktopServices::openUrl(address);
} }
QWidget *Zeeker::WebSearchPlugin::detailPage(const Zeeker::SearchPluginIface::ResultInfo &ri) QWidget *UkuiSearch::WebSearchPlugin::detailPage(const UkuiSearch::SearchPluginIface::ResultInfo &ri)
{ {
return m_detailPage; return m_detailPage;
} }
void Zeeker::WebSearchPlugin::initDetailPage() void UkuiSearch::WebSearchPlugin::initDetailPage()
{ {
m_detailPage = new QWidget(); m_detailPage = new QWidget();
m_detailPage->setFixedWidth(360); m_detailPage->setFixedWidth(360);

View File

@ -13,7 +13,7 @@
#include "action-label.h" #include "action-label.h"
#include "search-plugin-iface.h" #include "search-plugin-iface.h"
namespace Zeeker { namespace UkuiSearch {
class LIBSEARCH_EXPORT WebSearchPlugin : public QObject, public SearchPluginIface class LIBSEARCH_EXPORT WebSearchPlugin : public QObject, public SearchPluginIface
{ {
Q_OBJECT Q_OBJECT

View File

@ -2,7 +2,7 @@
<!DOCTYPE TS> <!DOCTYPE TS>
<TS version="2.1" language="zh_CN"> <TS version="2.1" language="zh_CN">
<context> <context>
<name>Zeeker::AppMatch</name> <name>UkuiSearch::AppMatch</name>
<message> <message>
<location filename="../../libsearch/appsearch/app-match.cpp" line="262"/> <location filename="../../libsearch/appsearch/app-match.cpp" line="262"/>
<source>Application Description:</source> <source>Application Description:</source>
@ -10,14 +10,14 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::AppSearch</name> <name>UkuiSearch::AppSearch</name>
<message> <message>
<source>Application Description:</source> <source>Application Description:</source>
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::AppSearchPlugin</name> <name>UkuiSearch::AppSearchPlugin</name>
<message> <message>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="11"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="11"/>
<location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="171"/> <location filename="../../libsearch/appsearch/app-search-plugin.cpp" line="171"/>
@ -59,7 +59,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::DirSearchPlugin</name> <name>UkuiSearch::DirSearchPlugin</name>
<message> <message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="218"/> <location filename="../../libsearch/index/file-search-plugin.cpp" line="218"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="355"/> <location filename="../../libsearch/index/file-search-plugin.cpp" line="355"/>
@ -109,7 +109,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::FileContengSearchPlugin</name> <name>UkuiSearch::FileContengSearchPlugin</name>
<message> <message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="398"/> <location filename="../../libsearch/index/file-search-plugin.cpp" line="398"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/> <location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
@ -163,7 +163,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::FileSearchPlugin</name> <name>UkuiSearch::FileSearchPlugin</name>
<message> <message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="11"/> <location filename="../../libsearch/index/file-search-plugin.cpp" line="11"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="158"/> <location filename="../../libsearch/index/file-search-plugin.cpp" line="158"/>
@ -225,7 +225,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::NoteSearch</name> <name>UkuiSearch::NoteSearch</name>
<message> <message>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="190"/> <location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="190"/>
<source>Note Description:</source> <source>Note Description:</source>
@ -234,7 +234,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::NoteSearchPlugin</name> <name>UkuiSearch::NoteSearchPlugin</name>
<message> <message>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="12"/> <location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="12"/>
<location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="128"/> <location filename="../../libsearch/notesearch/note-search-plugin.cpp" line="128"/>
@ -263,7 +263,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SearchManager</name> <name>UkuiSearch::SearchManager</name>
<message> <message>
<location filename="../../libsearch/index/search-manager.cpp" line="98"/> <location filename="../../libsearch/index/search-manager.cpp" line="98"/>
<source>Path:</source> <source>Path:</source>
@ -276,7 +276,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SettingsSearchPlugin</name> <name>UkuiSearch::SettingsSearchPlugin</name>
<message> <message>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="11"/> <location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="11"/>
<location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="405"/> <location filename="../../libsearch/settingsearch/settings-search-plugin.cpp" line="405"/>
@ -300,7 +300,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::WebSearchPlugin</name> <name>UkuiSearch::WebSearchPlugin</name>
<message> <message>
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="7"/> <location filename="../../libsearch/websearch/web-search-plugin.cpp" line="7"/>
<location filename="../../libsearch/websearch/web-search-plugin.cpp" line="94"/> <location filename="../../libsearch/websearch/web-search-plugin.cpp" line="94"/>

View File

@ -10,7 +10,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::BestListWidget</name> <name>UkuiSearch::BestListWidget</name>
<message> <message>
<location filename="../../frontend/view/best-list-view.cpp" line="309"/> <location filename="../../frontend/view/best-list-view.cpp" line="309"/>
<source>Best Matches</source> <source>Best Matches</source>
@ -18,7 +18,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::CreateIndexAskDialog</name> <name>UkuiSearch::CreateIndexAskDialog</name>
<message> <message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="40"/> <location filename="../../frontend/control/create-index-ask-dialog.cpp" line="40"/>
<source>ukui-search</source> <source>ukui-search</source>
@ -51,7 +51,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::FolderListItem</name> <name>UkuiSearch::FolderListItem</name>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="538"/> <location filename="../../frontend/control/settings-widget.cpp" line="538"/>
<source>Delete the folder out of blacklist</source> <source>Delete the folder out of blacklist</source>
@ -59,7 +59,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::MainWindow</name> <name>UkuiSearch::MainWindow</name>
<message> <message>
<location filename="../../frontend/mainwindow.cpp" line="70"/> <location filename="../../frontend/mainwindow.cpp" line="70"/>
<source>ukui-search</source> <source>ukui-search</source>
@ -72,7 +72,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SearchLineEdit</name> <name>UkuiSearch::SearchLineEdit</name>
<message> <message>
<location filename="../../frontend/control/search-line-edit.cpp" line="55"/> <location filename="../../frontend/control/search-line-edit.cpp" line="55"/>
<source>Search</source> <source>Search</source>
@ -80,7 +80,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SettingsWidget</name> <name>UkuiSearch::SettingsWidget</name>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="35"/> <location filename="../../frontend/control/settings-widget.cpp" line="35"/>
<source>ukui-search-settings</source> <source>ukui-search-settings</source>
@ -241,7 +241,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::WebSearchWidget</name> <name>UkuiSearch::WebSearchWidget</name>
<message> <message>
<location filename="../../frontend/view/web-search-view.cpp" line="150"/> <location filename="../../frontend/view/web-search-view.cpp" line="150"/>
<source>Web Page</source> <source>Web Page</source>

View File

@ -245,7 +245,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::BestListWidget</name> <name>UkuiSearch::BestListWidget</name>
<message> <message>
<location filename="../../frontend/view/best-list-view.cpp" line="309"/> <location filename="../../frontend/view/best-list-view.cpp" line="309"/>
<source>Best Matches</source> <source>Best Matches</source>
@ -253,7 +253,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::ContentWidget</name> <name>UkuiSearch::ContentWidget</name>
<message> <message>
<source>Recently Opened</source> <source>Recently Opened</source>
<translation type="obsolete">Yeni ılan</translation> <translation type="obsolete">Yeni ılan</translation>
@ -296,7 +296,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::CreateIndexAskDialog</name> <name>UkuiSearch::CreateIndexAskDialog</name>
<message> <message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="40"/> <location filename="../../frontend/control/create-index-ask-dialog.cpp" line="40"/>
<source>ukui-search</source> <source>ukui-search</source>
@ -329,7 +329,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::FolderListItem</name> <name>UkuiSearch::FolderListItem</name>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="538"/> <location filename="../../frontend/control/settings-widget.cpp" line="538"/>
<source>Delete the folder out of blacklist</source> <source>Delete the folder out of blacklist</source>
@ -337,7 +337,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::HomePage</name> <name>UkuiSearch::HomePage</name>
<message> <message>
<source>Open Quickly</source> <source>Open Quickly</source>
<translation type="obsolete">Hızlı </translation> <translation type="obsolete">Hızlı </translation>
@ -352,7 +352,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::MainWindow</name> <name>UkuiSearch::MainWindow</name>
<message> <message>
<location filename="../../frontend/mainwindow.cpp" line="70"/> <location filename="../../frontend/mainwindow.cpp" line="70"/>
<source>ukui-search</source> <source>ukui-search</source>
@ -369,7 +369,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::OptionView</name> <name>UkuiSearch::OptionView</name>
<message> <message>
<source>Open</source> <source>Open</source>
<translation type="obsolete"></translation> <translation type="obsolete"></translation>
@ -392,14 +392,14 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SearchBarHLayout</name> <name>UkuiSearch::SearchBarHLayout</name>
<message> <message>
<source>Search</source> <source>Search</source>
<translation type="obsolete">Ara</translation> <translation type="obsolete">Ara</translation>
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SearchDetailView</name> <name>UkuiSearch::SearchDetailView</name>
<message> <message>
<source>Application</source> <source>Application</source>
<translation type="obsolete">Uygulama</translation> <translation type="obsolete">Uygulama</translation>
@ -418,7 +418,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SearchLineEdit</name> <name>UkuiSearch::SearchLineEdit</name>
<message> <message>
<location filename="../../frontend/control/search-line-edit.cpp" line="55"/> <location filename="../../frontend/control/search-line-edit.cpp" line="55"/>
<source>Search</source> <source>Search</source>
@ -426,7 +426,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SettingsWidget</name> <name>UkuiSearch::SettingsWidget</name>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="35"/> <location filename="../../frontend/control/settings-widget.cpp" line="35"/>
<source>ukui-search-settings</source> <source>ukui-search-settings</source>
@ -587,7 +587,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::ShowMoreLabel</name> <name>UkuiSearch::ShowMoreLabel</name>
<message> <message>
<source>Show More...</source> <source>Show More...</source>
<translation type="obsolete">Daha Fazla Göster...</translation> <translation type="obsolete">Daha Fazla Göster...</translation>
@ -614,7 +614,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::WebSearchWidget</name> <name>UkuiSearch::WebSearchWidget</name>
<message> <message>
<location filename="../../frontend/view/web-search-view.cpp" line="150"/> <location filename="../../frontend/view/web-search-view.cpp" line="150"/>
<source>Web Page</source> <source>Web Page</source>

View File

@ -10,7 +10,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::BestListWidget</name> <name>UkuiSearch::BestListWidget</name>
<message> <message>
<location filename="../../frontend/view/best-list-view.cpp" line="309"/> <location filename="../../frontend/view/best-list-view.cpp" line="309"/>
<source>Best Matches</source> <source>Best Matches</source>
@ -18,7 +18,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::ContentWidget</name> <name>UkuiSearch::ContentWidget</name>
<message> <message>
<source>Recently Opened</source> <source>Recently Opened</source>
<translation type="vanished"></translation> <translation type="vanished"></translation>
@ -65,7 +65,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::CreateIndexAskDialog</name> <name>UkuiSearch::CreateIndexAskDialog</name>
<message> <message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="40"/> <location filename="../../frontend/control/create-index-ask-dialog.cpp" line="40"/>
<source>ukui-search</source> <source>ukui-search</source>
@ -98,7 +98,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::FolderListItem</name> <name>UkuiSearch::FolderListItem</name>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="538"/> <location filename="../../frontend/control/settings-widget.cpp" line="538"/>
<source>Delete the folder out of blacklist</source> <source>Delete the folder out of blacklist</source>
@ -106,7 +106,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::HomePage</name> <name>UkuiSearch::HomePage</name>
<message> <message>
<source>Open Quickly</source> <source>Open Quickly</source>
<translation type="vanished"></translation> <translation type="vanished"></translation>
@ -121,7 +121,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::MainWindow</name> <name>UkuiSearch::MainWindow</name>
<message> <message>
<location filename="../../frontend/mainwindow.cpp" line="70"/> <location filename="../../frontend/mainwindow.cpp" line="70"/>
<source>ukui-search</source> <source>ukui-search</source>
@ -138,7 +138,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::OptionView</name> <name>UkuiSearch::OptionView</name>
<message> <message>
<source>Open</source> <source>Open</source>
<translation type="vanished"></translation> <translation type="vanished"></translation>
@ -165,14 +165,14 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SearchBarHLayout</name> <name>UkuiSearch::SearchBarHLayout</name>
<message> <message>
<source>Search</source> <source>Search</source>
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SearchDetailView</name> <name>UkuiSearch::SearchDetailView</name>
<message> <message>
<source>Introduction: %1</source> <source>Introduction: %1</source>
<translation type="vanished">: %1</translation> <translation type="vanished">: %1</translation>
@ -199,7 +199,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SearchLineEdit</name> <name>UkuiSearch::SearchLineEdit</name>
<message> <message>
<location filename="../../frontend/control/search-line-edit.cpp" line="55"/> <location filename="../../frontend/control/search-line-edit.cpp" line="55"/>
<source>Search</source> <source>Search</source>
@ -207,7 +207,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::SettingsWidget</name> <name>UkuiSearch::SettingsWidget</name>
<message> <message>
<location filename="../../frontend/control/settings-widget.cpp" line="35"/> <location filename="../../frontend/control/settings-widget.cpp" line="35"/>
<source>ukui-search-settings</source> <source>ukui-search-settings</source>
@ -368,7 +368,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::ShowMoreLabel</name> <name>UkuiSearch::ShowMoreLabel</name>
<message> <message>
<source>Show More...</source> <source>Show More...</source>
<translation type="vanished">...</translation> <translation type="vanished">...</translation>
@ -395,7 +395,7 @@
</message> </message>
</context> </context>
<context> <context>
<name>Zeeker::WebSearchWidget</name> <name>UkuiSearch::WebSearchWidget</name>
<message> <message>
<location filename="../../frontend/view/web-search-view.cpp" line="150"/> <location filename="../../frontend/view/web-search-view.cpp" line="150"/>
<source>Web Page</source> <source>Web Page</source>

View File

@ -7,7 +7,7 @@
#include <unistd.h> #include <unistd.h>
#include <QDebug> #include <QDebug>
#include "ukui-search-service.h" #include "ukui-search-service.h"
using namespace Zeeker; using namespace UkuiSearch;
void messageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg) void messageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{ {
QByteArray localMsg = msg.toLocal8Bit(); QByteArray localMsg = msg.toLocal8Bit();

View File

@ -2,7 +2,7 @@
#include "ukui-search-service.h" #include "ukui-search-service.h"
#define UKUI_SEARCH_SCHEMAS "org.ukui.search.settings" #define UKUI_SEARCH_SCHEMAS "org.ukui.search.settings"
#define SEARCH_METHOD_KEY "indexSearch" #define SEARCH_METHOD_KEY "indexSearch"
using namespace Zeeker; using namespace UkuiSearch;
UkuiSearchService::UkuiSearchService(int &argc, char *argv[], const QString &applicationName): QtSingleApplication (applicationName, argc, argv) UkuiSearchService::UkuiSearchService(int &argc, char *argv[], const QString &applicationName): QtSingleApplication (applicationName, argc, argv)
{ {
qDebug()<<"ukui search service constructor start"; qDebug()<<"ukui search service constructor start";

View File

@ -8,7 +8,7 @@
#include "search-method-manager.h" #include "search-method-manager.h"
#include "common.h" #include "common.h"
#include "file-utils.h" #include "file-utils.h"
namespace Zeeker { namespace UkuiSearch {
class UkuiSearchService : public QtSingleApplication class UkuiSearchService : public QtSingleApplication
{ {