~scopecreator-team/scopecreator/rss-template

« back to all changes in this revision

Viewing changes to include/scope/scope.h

- removed not needed boost foreach. Used usual for
- avoid including empty categories (no title or url)
- included scope metadata in query search
- readed logo, emblem, date time format from scope metadata instead of hardcoded path
- included BigFirstResult boolean setting in .ini file appearance section to show or not with a big image the first received result in surface mode, if not aggregated

but reading scope .ini file directly using QSettings instead of using Scope::metadata

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <unity/scopes/QueryBase.h>
29
29
#include <unity/scopes/PreviewQueryBase.h>
30
30
 
 
31
#include <QSettings>
 
32
#include <QSharedPointer>
 
33
 
31
34
namespace scope {
32
35
 
33
36
/**
62
65
    unity::scopes::SearchQueryBase::UPtr search(
63
66
            unity::scopes::CannedQuery const& q,
64
67
            unity::scopes::SearchMetadata const&) override;
 
68
 
 
69
private:
 
70
    std::string scope_id_;
 
71
    QSharedPointer<QSettings> mScopeConfig;
 
72
 
 
73
    void loadScopeConfig();
65
74
};
66
75
 
67
76
}