Commit 080d21aa authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Improve remove content info

parent c27a4bfe
Pipeline #45484 canceled with stage
......@@ -40,3 +40,10 @@ bool RemoteContentInfo::isValid() const
{
return !mUrl.isEmpty() && (mStatus != RemoteContentInfoStatus::Unknown);
}
QDebug operator <<(QDebug d, const MessageViewer::RemoteContentInfo &t)
{
d << "mUrl " << t.url();
d << "mStatus " << t.status();
return d;
}
......@@ -10,6 +10,7 @@
#include "messageviewer_private_export.h"
#include <QObject>
#include <QDebug>
namespace MessageViewer {
class MESSAGEVIEWER_TESTS_EXPORT RemoteContentInfo
{
......@@ -38,5 +39,6 @@ private:
QString mUrl;
};
}
Q_DECLARE_TYPEINFO(MessageViewer::RemoteContentInfo, Q_MOVABLE_TYPE);
MESSAGEVIEWER_EXPORT QDebug operator <<(QDebug d, const MessageViewer::RemoteContentInfo &t);
#endif // REMOTECONTENTINFO_H
......@@ -5,6 +5,7 @@
*/
#include "remotecontentmanager.h"
#include "remotecontentinfo.h"
using namespace MessageViewer;
RemoteContentManager::RemoteContentManager(QObject *parent)
: QObject(parent)
......
......@@ -11,6 +11,7 @@
#include "messageviewer_private_export.h"
#include <QObject>
namespace MessageViewer {
class RemoteContentInfo;
class MESSAGEVIEWER_TESTS_EXPORT RemoteContentManager : public QObject
{
Q_OBJECT
......@@ -22,6 +23,7 @@ public:
private:
void loadSettings();
void writeSettings();
QVector<RemoteContentInfo> mRemoveContentInfo;
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment