~unity-team/unity-scope-mediascanner/trunk

« back to all changes in this revision

Viewing changes to src/music-scope.h

  • Committer: CI bot
  • Author(s): Jussi Pakkanen, Michal Hruby
  • Date: 2014-04-29 13:19:54 UTC
  • mfrom: (60.1.24 unity-scope-mediascanner)
  • Revision ID: ps-jenkins@lists.canonical.com-20140429131954-3wevq5uhgeoiq7f9
Return album results for searches. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
class MusicScope : public unity::scopes::ScopeBase
12
12
{
13
13
    friend class MusicQuery;
 
14
    friend class MusicPreview;
 
15
 
14
16
public:
15
17
    virtual int start(std::string const&, unity::scopes::RegistryProxy const&) override;
16
18
    virtual void stop() override;
33
35
private:
34
36
    const MusicScope &scope;
35
37
    const unity::scopes::CannedQuery query;
 
38
 
 
39
    void query_songs(unity::scopes::SearchReplyProxy const&reply) const;
 
40
    void query_albums(unity::scopes::SearchReplyProxy const&reply) const;
36
41
};
37
42
 
38
43
class MusicPreview : public unity::scopes::PreviewQueryBase
43
48
    virtual void run(unity::scopes::PreviewReplyProxy const& reply) override;
44
49
 
45
50
private:
 
51
    void song_preview(unity::scopes::PreviewReplyProxy const &reply) const;
 
52
    void album_preview(unity::scopes::PreviewReplyProxy const &reply) const;
46
53
    const MusicScope &scope;
47
54
    const unity::scopes::Result result;
48
55
};