~ubuntu-branches/ubuntu/trusty/content-hub/trusty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Ken VanDine, Ubuntu daily release
  • Date: 2014-03-21 00:46:57 UTC
  • mfrom: (1.1.19)
  • Revision ID: package-import@ubuntu.com-20140321004657-5w0p7mj1qn9lrrj3
Tags: 0.0+14.04.20140321-0ubuntu1
[ Ken VanDine ]
* Adds support for multiple handler types: source, destination and
  share. Enforce single transfer per peer, if a second transfer
  request is made from a peer that already has an unfinished transfer,
  cancel the previous one. This is needed as long as apps are required
  to be single instance.
* If the transfer isn't persistent, attempt to hardlink instead of
  copying. If the link fails, fallback to a copy.
* If the default source is set to anything other than a click appId
  triplet, fallback to the legacy APP_ID. Changed default source for
  contacts to the legacy APP_ID for address-book-app

[ Ubuntu daily release ]
* New rebuild forced

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#ifndef COM_UBUNTU_CONTENTSTORE_H_
18
18
#define COM_UBUNTU_CONTENTSTORE_H_
19
19
 
 
20
#include "contentscope.h"
 
21
#include "contenttype.h"
 
22
#include <com/ubuntu/content/hub.h>
20
23
#include <com/ubuntu/content/store.h>
21
24
 
22
25
#include <QObject>
26
29
{
27
30
    Q_OBJECT
28
31
    Q_PROPERTY(QString uri READ uri NOTIFY uriChanged)
 
32
    Q_PROPERTY(ContentScope::Scope scope READ scope WRITE setScope NOTIFY scopeChanged)
29
33
 
30
34
public:
31
35
    ContentStore(QObject *parent = nullptr);
35
39
    const com::ubuntu::content::Store *store() const;
36
40
    void setStore(const com::ubuntu::content::Store *store);
37
41
 
 
42
    ContentScope::Scope scope();
 
43
    void setScope(ContentScope::Scope scope);
 
44
 
 
45
    void updateStore(ContentType::Type type);
 
46
 
38
47
Q_SIGNALS:
39
48
    void uriChanged();
 
49
    void scopeChanged();
40
50
 
41
51
private:
 
52
    com::ubuntu::content::Hub *m_hub;
42
53
    const com::ubuntu::content::Store *m_store;
 
54
    ContentScope::Scope m_scope;
43
55
};
44
56
 
45
57
#endif // COM_UBUNTU_CONTENTSTORE_H_