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

« back to all changes in this revision

Viewing changes to src/album/album.h

  • 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:
75
75
    Q_PROPERTY(int currentPage READ currentPage WRITE setCurrentPage
76
76
               NOTIFY currentPageChanged)
77
77
    Q_PROPERTY(bool closed READ isClosed WRITE setClosed NOTIFY closedChanged)
 
78
    Q_PROPERTY(bool newAlbum READ isNewAlbum WRITE setNewAlbum NOTIFY newAlbumChanged)
78
79
    Q_PROPERTY(QString coverNickname READ coverNickname WRITE setCoverNickname
79
80
               NOTIFY coverNicknameChanged)
80
81
 
86
87
    void titleChanged();
87
88
    void subtitleChanged();
88
89
    void closedChanged();
 
90
    void newAlbumChanged();
89
91
    void contentPagesChanged();
90
92
    void pageCountChanged();
91
93
    void coverNicknameChanged();
122
124
    AlbumTemplate* albumTemplate() const;
123
125
    void setAlbumTemplate(AlbumTemplate *albumTemplate);
124
126
    bool isClosed() const;
 
127
    bool isNewAlbum() const;
125
128
    int totalPageCount() const;
126
129
    int contentPageCount() const;
127
130
    int populatedContentPageCount() const;
133
136
    int currentPage() const;
134
137
    void setCurrentPage(int page);
135
138
    void setClosed(bool closed);
 
139
    void setNewAlbum(bool newAlbum);
136
140
    void setId(qint64 id);
137
141
    qint64 id() const;
138
142
    QString coverNickname() const;
165
169
 
166
170
private slots:
167
171
    void onAlbumPageContentChanged(const QSet<DataObject*>* added,
168
 
                                   const QSet<DataObject*>* removed);
 
172
                                   const QSet<DataObject*>* removed,
 
173
                                   bool notify);
169
174
 
170
175
private:
171
176
    void initInstance();
177
182
    QDateTime m_creationDateDime;
178
183
    int m_currentPage; // Page number of the left page of the current spread.
179
184
    bool m_closed;
 
185
    bool m_newAlbum;
180
186
    int m_populatedPagesCount;
181
187
    SourceCollection* m_contentPages;
182
188
    QList<MediaSource*> m_allMediaSources;