mcloud  1.0.0
MCloud API library for cmcc cloud service
diskinfo.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2016 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
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  * Authored by: Gary Wang <gary.wang@canonical.com>
17  */
18 
19 #ifndef MCLOUD_API_DISKINFO_H_
20 #define MCLOUD_API_DISKINFO_H_
21 
22 #include <mcloud/api/visibility.h>
23 
24 #include <memory>
25 
26 namespace tinyxml2 {
27  class XMLElement;
28 }
29 
30 namespace mcloud {
31 namespace api {
32 
39 public:
40  virtual ~DiskInfo() = default;
41 
45  int free_disk_size() const;
46 
50  int disk_size() const;
51 
52 private:
53  DiskInfo(const tinyxml2::XMLElement *root);
54 
55  friend class ClientPriv;
56 
57  class Priv;
58  std::shared_ptr<Priv> p_;
59 };
60 
61 }
62 }
63 
64 #endif // MCLOUD_API_DISKINFO_H_
DiskInfo is a class that provides basic user&#39;s mcloud storage usage information.
Definition: diskinfo.h:38
Definition: client.h:37
#define MCLOUD_API_DLL_PUBLIC
Definition: visibility.h:26