add known errors in layouts storage

work/spdx
Michail Vourlakos 4 years ago
parent 7eedf8f8a2
commit a2bf28054f

@ -36,6 +36,10 @@ namespace Data {
class Error : public Data::Generic
{
public:
static constexpr const char* APPLETSWITHSAMEID = "17";
static constexpr const char* APPLETSANDCONTAINMENTSWITHSAMEID = "18";
static constexpr const char* ORPHANEDSUBCONTAINMENTS = "19";
Error();
Error(Error &&o);
Error(const Error &o);

@ -25,6 +25,7 @@
#include "manager.h"
#include "../lattecorona.h"
#include "../screenpool.h"
#include "../data/errordata.h"
#include "../layout/abstractlayout.h"
#include "../view/view.h"
@ -56,6 +57,11 @@ Storage::Storage()
{
qDebug() << " >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> LAYOUTS::STORAGE, TEMP DIR ::: " << m_storageTmpDir.path();
//! Known Errors
m_knownErrors << Data::Generic(Data::Error::APPLETSWITHSAMEID, i18n("Different Applets With Same Id"));
m_knownErrors << Data::Generic(Data::Error::APPLETSANDCONTAINMENTSWITHSAMEID, i18n("Different Applets And Containments With Same Id"));
m_knownErrors << Data::Generic(Data::Error::ORPHANEDSUBCONTAINMENTS, i18n("Orphaned Subcontainments"));
SubContaimentIdentityData data;
//! Systray

@ -22,6 +22,7 @@
// local
#include "../data/appletdata.h"
#include "../data/genericdata.h"
#include "../data/generictable.h"
#include "../data/viewstable.h"
@ -133,6 +134,8 @@ private:
private:
QTemporaryDir m_storageTmpDir;
Data::GenericTable<Data::Generic> m_knownErrors;
QList<SubContaimentIdentityData> m_subIdentities;
};

Loading…
Cancel
Save