~elopio/gallery-app/revert_workaround-1302706-click_toolbar_button_failure

« back to all changes in this revision

Viewing changes to tests/unittests/stubs/gallery-manager_stub.cpp

  • Committer: Leo Arias
  • Date: 2015-05-15 08:05:23 UTC
  • mfrom: (954.1.241 gallery-app)
  • Revision ID: leo.arias@canonical.com-20150515080523-i2of3vr8h7dioj59
Now the toolbar object is not needed at all.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
// media
34
34
#include "media-collection.h"
35
35
 
36
 
// qml
37
 
#include "gallery-standard-image-provider.h"
38
 
 
39
36
GalleryManager* GalleryManager::m_galleryManager = NULL;
40
37
 
41
 
GalleryManager::GalleryManager(bool desktopMode, const QString& picturesDir, QQuickView *view)
 
38
GalleryManager::GalleryManager(bool desktopMode, const QString& picturesDir)
42
39
    : collectionsInitialised(false),
43
40
      m_resource(0),
44
 
      m_standardImageProvider(new GalleryStandardImageProvider()),
45
41
      m_database(0),
46
42
      m_defaultTemplate(0),
47
43
      m_mediaCollection(0),
51
47
      m_mediaLibrary(0)
52
48
{
53
49
    Q_UNUSED(picturesDir);
54
 
    Q_UNUSED(view);
55
50
}
56
51
 
57
52
GalleryManager* GalleryManager::instance()
89
84
 
90
85
GalleryManager::~GalleryManager()
91
86
{
92
 
    delete m_standardImageProvider;
93
87
    delete m_defaultTemplate;
94
88
    delete m_mediaCollection;
95
89
    delete m_albumCollection;
96
90
    delete m_eventCollection;
97
91
}
98
92
 
99
 
void GalleryManager::onMediaItemAdded(QString file)
 
93
void GalleryManager::onMediaItemAdded(QString file, int priority)
100
94
{
101
95
    Q_UNUSED(file);
102
96
}
106
100
    Q_UNUSED(mediaId);
107
101
}
108
102
 
109
 
GalleryStandardImageProvider* GalleryManager::takeGalleryStandardImageProvider()
110
 
{
111
 
    return 0;
 
103
void GalleryManager::onMediaObjectCreated(MediaSource *mediaObject)
 
104
{
 
105
    Q_UNUSED(mediaObject);
 
106
}
 
107
 
 
108
void GalleryManager::onMediaFromDBLoaded(QSet<DataObject *> mediaFromDB)
 
109
{
 
110
    Q_UNUSED(mediaFromDB);
112
111
}