~mcloud-team/mcloud/trunk

« back to all changes in this revision

Viewing changes to src/mcloud/api/client_priv.h

  • Committer: Gary.Wang
  • Date: 2016-06-03 08:20:20 UTC
  • Revision ID: gary.wang@canonical.com-20160603082020-3t80frsu757ryrie
* Set access token before authenticating all mcloud API calls  (new api
  introduce), not to refresh token.
* Fix error when retrieve content info.
* Add content info test case.
* Introduce new member(folder path) for cloud folder. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
    virtual ~ClientPriv();
44
44
 
45
 
    void set_auth_info(const std::string &access_token);
46
 
 
47
45
    DiskInfo disk_info();
48
46
 
49
47
    std::string cloud_sync_folder_id();
50
48
 
 
49
    void set_access_token(const std::string &access_token);
 
50
 
51
51
    CloudContent::Ptr   content_item(const std::string &content_id);
52
52
 
53
53
    CloudFolder::Ptr    create_folder(const std::string &folder_name,
57
57
                                 const std::string &parent_folder_id,
58
58
                                 CloudResource::Property property = CloudResource::Property::Content);
59
59
 
 
60
    bool refersh_token(const std::string &refresh_token);
 
61
 
60
62
    bool move_items(const Client::Stringlist &folder_ids,
61
63
                    const Client::Stringlist &content_ids,
62
64
                    const std::string &parent_folder_id);
63
65
 
64
 
    bool refersh_token(const std::string &refresh_token);
65
 
 
66
66
    bool exist_on_cloud(const std::string &file_path);
67
67
 
68
68
    bool delete_folders(const Client::Stringlist &folder_ids);