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

« back to all changes in this revision

Viewing changes to import/Ubuntu/Content/contenttransfer.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:
51
51
        Finalized = com::ubuntu::content::Transfer::finalized
52
52
    };
53
53
    enum Direction {
54
 
        Import,
55
 
        Export
 
54
        Import = com::ubuntu::content::Transfer::Import,
 
55
        Export = com::ubuntu::content::Transfer::Export,
 
56
        Share = com::ubuntu::content::Transfer::Share
56
57
    };
57
58
    enum SelectionType {
58
59
        Single = com::ubuntu::content::Transfer::SelectionType::single,
78
79
    Q_INVOKABLE void setStore(ContentStore *contentStore);
79
80
 
80
81
    com::ubuntu::content::Transfer *transfer() const;
81
 
    void setTransfer(com::ubuntu::content::Transfer *transfer, Direction direction);
 
82
    void setTransfer(com::ubuntu::content::Transfer *transfer);
82
83
 
83
84
    void collectItems();
84
85