~unity-api-team/storage-framework/vivid

« back to all changes in this revision

Viewing changes to include/unity/storage/client/DownloadResult.h

  • Committer: Bileto Bot
  • Author(s): James Henstridge
  • Date: 2016-08-04 07:19:51 UTC
  • mfrom: (8.25.12 merge-devel)
  • Revision ID: ci-train-bot@canonical.com-20160804071951-3mfrcheyjvif6o99
Initial release of storage framework.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#pragma once
2
 
 
3
 
#include <unity/storage/client/Item.h>
4
 
 
5
 
namespace unity
6
 
{
7
 
 
8
 
namespace storage
9
 
{
10
 
 
11
 
namespace client
12
 
{
13
 
 
14
 
class DownloadResult
15
 
{
16
 
public:
17
 
    ~DownloadResult();
18
 
    DownloadResult(DownloadResult const&) = delete;
19
 
    DownloadResult& operator=(DownloadResult const&) = delete;
20
 
    DownloadResult(DownloadResult&&) = delete;
21
 
    DownloadResult& operator=(DownloadResult&&) = delete;
22
 
 
23
 
    /**
24
 
    Checks for errors once a download has completed.
25
 
 
26
 
    If the download has completed, this method returns normally. Otherwise, it throws an exception
27
 
    that provides more details about the error.
28
 
    \throws TODO: list of exceptions
29
 
    */
30
 
    void check_error() const;
31
 
 
32
 
private:
33
 
    DownloadResult();
34
 
};
35
 
 
36
 
}  // namespace client
37
 
 
38
 
}  // namespace storage
39
 
 
40
 
}  // namespace unity