~content-hub-team/content-hub/trunk

« back to all changes in this revision

Viewing changes to import/Ubuntu/Content/contentstore.h

  • Committer: Tarmac
  • Author(s): Ken VanDine
  • Date: 2013-09-30 18:39:00 UTC
  • mfrom: (48.1.1 content-hub-lp1231368)
  • Revision ID: tarmac-20130930183900-61vw3dr45uph3six
Pulled back in all the changes that were reverted in rev 47.  Bug (LP: #1231368) seemed to be caused by gallery-app needing a rebuild against this version of content-hub.

Approved by PS Jenkins bot, Günter Schwann.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
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 Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#ifndef COM_UBUNTU_CONTENTSTORE_H_
 
18
#define COM_UBUNTU_CONTENTSTORE_H_
 
19
 
 
20
#include <com/ubuntu/content/store.h>
 
21
 
 
22
#include <QObject>
 
23
#include <QString>
 
24
 
 
25
class ContentStore : public QObject
 
26
{
 
27
    Q_OBJECT
 
28
    Q_PROPERTY(QString uri READ uri NOTIFY uriChanged)
 
29
 
 
30
public:
 
31
    ContentStore(QObject *parent = nullptr);
 
32
 
 
33
    const QString &uri() const;
 
34
 
 
35
    const com::ubuntu::content::Store *store() const;
 
36
    void setStore(const com::ubuntu::content::Store *store);
 
37
 
 
38
Q_SIGNALS:
 
39
    void uriChanged();
 
40
 
 
41
private:
 
42
    const com::ubuntu::content::Store *m_store;
 
43
};
 
44
 
 
45
#endif // COM_UBUNTU_CONTENTSTORE_H_