Remove unused network settings

This commit is contained in:
Lars Toenning
2022-06-04 22:36:01 +02:00
parent 3949bf8652
commit be86a63298
4 changed files with 0 additions and 113 deletions

View File

@@ -36,7 +36,6 @@
#include "blackmisc/network/user.h"
#include "blackmisc/network/userlist.h"
#include "blackmisc/network/voicecapabilities.h"
#include "blackmisc/network/settings/networksettings.h"
namespace BlackMisc
{
@@ -76,7 +75,6 @@ namespace BlackMisc
CUser::registerMetadata();
CUserList::registerMetadata();
CVoiceCapabilities::registerMetadata();
Settings::CNetworkSettings::registerMetadata();
}
}

View File

@@ -1,48 +0,0 @@
/* Copyright (C) 2018
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
* or distributed except according to the terms contained in the LICENSE file.
*/
#include "blackmisc/network/settings/networksettings.h"
#include "blackmisc/stringutils.h"
#include <QtGlobal>
#include <QStringBuilder>
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network::Settings, CNetworkSettings)
namespace BlackMisc::Network::Settings
{
QString CNetworkSettings::convertToQString(bool i18n) const
{
Q_UNUSED(i18n);
return QStringLiteral("NOT USED");
}
QVariant CNetworkSettings::propertyByIndex(CPropertyIndexRef index) const
{
if (index.isMyself()) { return QVariant::fromValue(*this); }
// const ColumnIndex i = index.frontCasted<ColumnIndex>();
// switch (i)
// {
// case IndexDynamicOffsetTime: return CVariant::fromValue(m_dynamicOffsetTimes);
// default: break;
// }
return CValueObject::propertyByIndex(index);
}
void CNetworkSettings::setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant)
{
if (index.isMyself()) { (*this) = variant.value<CNetworkSettings>(); return; }
// const ColumnIndex i = index.frontCasted<ColumnIndex>();
// switch (i)
// {
// case IndexDynamicOffsetTime: this->setDynamicOffsetTimes(variant.toBool()); break;
// default: break;
// }
CValueObject::setPropertyByIndex(index, variant);
}
} // ns

View File

@@ -1,62 +0,0 @@
/* Copyright (C) 2018
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
* or distributed except according to the terms contained in the LICENSE file.
*/
//! \file
#ifndef BLACKMISC_NETWORK_SETTINGS_NETWORKSETTINGS_H
#define BLACKMISC_NETWORK_SETTINGS_NETWORKSETTINGS_H
#include "blackmisc/propertyindexref.h"
#include "blackmisc/metaclass.h"
#include "blackmisc/valueobject.h"
#include "blackmisc/blackmiscexport.h"
#include <QJsonObject>
#include <QMetaType>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network::Settings, CNetworkSettings)
namespace BlackMisc::Network::Settings
{
//! Network settings
//! \remark CURRENTLY a STUB not used
class BLACKMISC_EXPORT CNetworkSettings : public CValueObject<CNetworkSettings>
{
public:
//! Properties by index
enum ColumnIndex
{
IndexDynamicOffsetTime = CPropertyIndexRef::GlobalIndexCNetworkSettings,
};
//! Constructor
CNetworkSettings() {}
//! \copydoc BlackMisc::Mixin::String::toQString
QString convertToQString(bool i18n = false) const;
//! \copydoc BlackMisc::Mixin::Index::propertyByIndex
QVariant propertyByIndex(CPropertyIndexRef index) const;
//! \copydoc BlackMisc::Mixin::Index::setPropertyByIndex
void setPropertyByIndex(CPropertyIndexRef index, const QVariant &variant);
private:
bool m_dummy = false;
BLACK_METACLASS(
CNetworkSettings,
BLACK_METAMEMBER(dummy)
);
};
} // ns
Q_DECLARE_METATYPE(BlackMisc::Network::Settings::CNetworkSettings)
#endif // guard

View File

@@ -79,7 +79,6 @@ namespace BlackMisc
GlobalIndexCServer = 6400,
GlobalIndexCFsdSetup = 6500,
GlobalIndexCVoiceSetup = 6600,
GlobalIndexCNetworkSettings = 6700,
GlobalIndexCUrl = 6800,
GlobalIndexCUrlLog = 6900,
GlobalIndexCRemoteFile = 7000,