Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly expose enums for introspection #48

Merged
merged 1 commit into from Jun 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -41,7 +41,6 @@ class ComponentData;
*/
class APPSTREAMQT_EXPORT Component {
Q_GADGET
Q_ENUMS(Kind UrlKind)
public:
enum Kind {
KindUnknown,
@@ -53,6 +52,8 @@ class APPSTREAMQT_EXPORT Component {
KindAddon,
KindFirmware
};
Q_ENUM(Kind)

enum UrlKind {
UrlKindUnknown,
UrlKindHomepage,
@@ -61,11 +62,14 @@ class APPSTREAMQT_EXPORT Component {
UrlKindHelp,
UrlKindDonation
};
Q_ENUM(UrlKind)

enum BundleKind {
BundleKindUnknown,
BundleKindLimba,
BundleKindXdgApp
};
Q_ENUM(BundleKind)

Component();
Component(const Component& other);
@@ -43,13 +43,14 @@ class ImageData;
*/
class APPSTREAMQT_EXPORT Image {
Q_GADGET
Q_ENUMS(Kind)
public:
enum Kind {
Unknown,
Thumbnail,
Plain
};
Q_ENUM(Kind)

Image();
Image(const Image& other);
~Image();
@@ -32,7 +32,6 @@ class ProvidesData;

class APPSTREAMQT_EXPORT Provides {
Q_GADGET
Q_ENUMS(Kind)
public:
Provides();
Provides(const Provides& other);
@@ -54,6 +53,7 @@ class APPSTREAMQT_EXPORT Provides {
KindFirmwareRuntime,
KindFirmwareFlashed
};
Q_ENUM(Kind)

void setKind(Kind kind);
Kind kind() const;