~robert-ancell/snapd-glib/tests

« back to all changes in this revision

Viewing changes to snapd-qt/Snapd/snap.h

  • Committer: Robert Ancell
  • Date: 2016-09-07 00:11:06 UTC
  • mto: (170.1.11 trunk)
  • mto: This revision was merged to the branch mainline in revision 201.
  • Revision ID: robert.ancell@canonical.com-20160907001106-0qxvlsbc5cx6sdlq
Start addings Qt support

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2016 Canonical Ltd.
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or modify it under
 
5
 * the terms of the GNU Lesser General Public License as published by the Free
 
6
 * Software Foundation; either version 2 or version 3 of the License.
 
7
 * See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
 
8
 */
 
9
 
 
10
#ifndef SNAPD_SNAP_H
 
11
#define SNAPD_SNAP_H
 
12
 
 
13
#include <QtCore/QObject>
 
14
 
 
15
namespace Snapd
 
16
{
 
17
struct SnapPrivate;
 
18
 
 
19
class Q_DECL_EXPORT Snap : public QObject
 
20
{
 
21
    Q_OBJECT
 
22
 
 
23
public:
 
24
    explicit Snap (QObject* parent, void* snapd_object);
 
25
    Snap (const Snap&);
 
26
 
 
27
    // FIXME QList<Snapd::App> apps ();
 
28
    QString channel ();
 
29
    // FIXME Snapd::Confinement confinement ();
 
30
    QString description ();
 
31
    QString developer ();
 
32
    bool devmode ();
 
33
    qint64 downloadSize ();
 
34
    QString icon ();
 
35
    QString id ();
 
36
    // FIXME GDateTime installDate ();
 
37
    qint64 installedSize ();
 
38
    QString name ();
 
39
    bool isPrivate ();
 
40
    QString revision ();
 
41
    // FIXME Snapd::SnapType snapType ();
 
42
    // FIXME Snapd::SnapStatus status ();
 
43
    QString summary ();
 
44
    bool trymode ();
 
45
    QString version (); 
 
46
 
 
47
private:
 
48
    SnapPrivate *d_ptr;
 
49
    Q_DECLARE_PRIVATE (Snap);
 
50
};
 
51
 
 
52
}
 
53
 
 
54
#endif