/* * Copyright 2013 Canonical Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef COM_LOMIRI_CONTENTSTORE_H_ #define COM_LOMIRI_CONTENTSTORE_H_ #include "contentscope.h" #include "contenttype.h" #include #include #include #include class ContentStore : public QObject { Q_OBJECT Q_PROPERTY(QString uri READ uri NOTIFY uriChanged) Q_PROPERTY(ContentScope::Scope scope READ scope WRITE setScope NOTIFY scopeChanged) public: ContentStore(QObject *parent = nullptr); const QString &uri() const; void setUri(const QString & uri); ContentScope::Scope scope(); void setScope(ContentScope::Scope scope); Q_SIGNALS: void uriChanged(); void scopeChanged(); private: ContentScope::Scope m_scope; QString m_uri; }; #endif // COM_LOMIRI_CONTENTSTORE_H_