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

« back to all changes in this revision

Viewing changes to src/database/photo-edit-table.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:
1
 
/*
2
 
 * Copyright (C) 2012 Canonical Ltd
3
 
 *
4
 
 * This program is free software: you can redistribute it and/or modify
5
 
 * it under the terms of the GNU General Public License version 3 as
6
 
 * published by the Free Software Foundation.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
 
 * Authors:
17
 
 * Charles Lindsay <chaz@yorba.org>
18
 
 */
19
 
 
20
 
#ifndef PHOTOEDITTABLE_H
21
 
#define PHOTOEDITTABLE_H
22
 
 
23
 
#include <QObject>
24
 
 
25
 
class Database;
26
 
class PhotoEditState;
27
 
 
28
 
/*!
29
 
 * \brief The PhotoEditTable class
30
 
 */
31
 
class PhotoEditTable : public QObject
32
 
{
33
 
    Q_OBJECT
34
 
 
35
 
public:
36
 
    explicit PhotoEditTable(Database* db, QObject *parent = 0);
37
 
 
38
 
    PhotoEditState editState(qint64 mediaId) const;
39
 
    void setEditState(qint64 mediaId, const PhotoEditState& editState);
40
 
 
41
 
private:
42
 
    void prepareRow(qint64 mediaId);
43
 
 
44
 
    Database* m_db;
45
 
};
46
 
 
47
 
#endif // PHOTOEDITTABLE_H