Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 5b5b5de

Browse files
committed
cleanup todos
1 parent 88caee2 commit 5b5b5de

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

doc/setup.dox

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ Currently known:)
254254
- Apple Keychain (macOs and iOs only)
255255
- Plain (An **unsecure** fallback implementation that works on any platform)
256256

257+
@note Typically the plugin is expected to in the `$QT_INSTALL_PLUGINS/keystores` folder. If you
258+
have the plugins elsewhere, use the `PLUGIN_KEYSTORES_PATH` environment variable to specify
259+
additional paths, seperated by the system path seperator (`:` on unix, `;` on windows)
260+
257261
More keystores can be added by creating a custom KeyStorePlugin
258262

259263
@accessors{

src/datasync/accountmanager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class Q_DATASYNC_EXPORT AccountManager : public QObject
134134
//! @copydoc exportAccountTrusted(bool, const QString &, const std::function<void(QJsonObject)> &, const std::function<void(QString)> &)
135135
void exportAccountTrusted(bool includeServer, const QString &password, const std::function<void(QByteArray)> &completedFn, const std::function<void(QString)> &errorFn = {});
136136
//! Import an account from the given untrusted export data
137-
void importAccount(const QJsonObject &importData, const std::function<void(bool,QString)> &completedFn, bool keepData = false); //NOTE doc: completed does not mean accepted from peer, just valid import
137+
void importAccount(const QJsonObject &importData, const std::function<void(bool,QString)> &completedFn, bool keepData = false);
138138
//! @copydoc importAccount(const QJsonObject &, const std::function<void(bool,QString)> &, bool)
139139
void importAccount(const QByteArray &importData, const std::function<void(bool,QString)> &completedFn, bool keepData = false);
140140
//! Import an account from the given trusted export data

src/datasync/datastore.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ QVariantList DataStore::search(int metaTypeId, const QString &query, SearchMode
148148

149149
void DataStore::iterate(int metaTypeId, const function<bool (QVariant)> &iterator) const
150150
{
151-
//TODO make atomic
152151
auto keyList = keys(metaTypeId);
153152
foreach(auto key, keyList) {
154153
if(!iterator(load(metaTypeId, key)))

src/datasync/qtdatasync_helpertypes.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ struct is_object : public std::false_type {};
2222
template <class T>
2323
struct is_object<T*> : public std::is_base_of<QObject, T> {};
2424

25-
//NOTE c++17 disjunction
2625
template <typename T>
2726
struct is_storable : public is_gadget<T> {};
2827

src/datasync/setup.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ bool Setup::keystoreAvailable(const QString &provider)
7171

7272
QString Setup::defaultKeystoreProvider()
7373
{
74-
//NOTE add envvar to doc
7574
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
7675
auto prefered = qEnvironmentVariable("QTDATASYNC_KEYSTORE");
7776
#else

src/datasync/setup.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class Q_DATASYNC_EXPORT RemoteConfig
6868
Q_PROPERTY(HeaderHash headers READ headers WRITE setHeaders)
6969
//! The keep alive timeout to be used to send pings to the server
7070
Q_PROPERTY(int keepaliveTimeout READ keepaliveTimeout WRITE setKeepaliveTimeout)
71-
//TODO add ssl config -> make serializing hard...
7271

7372
public:
7473
//! Typedef for a hash of additional HTTP headers

tools/appserver/app.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void App::onSignal(int signal)
208208
QString App::findConfig() const
209209
{
210210
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
211-
auto configPath = qEnvironmentVariable("QDSAPP_CONFIG_FILE");//NOTE document
211+
auto configPath = qEnvironmentVariable("QDSAPP_CONFIG_FILE");
212212
#else
213213
auto configPath = QString::fromUtf8(qgetenv("QDSAPP_CONFIG_FILE"));
214214
#endif
@@ -217,7 +217,7 @@ QString App::findConfig() const
217217

218218
//if not set: empty list
219219
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
220-
auto tmpPaths = qEnvironmentVariable("QDSAPP_CONFIG_PATH").split(QDir::listSeparator(), QString::SkipEmptyParts);//NOTE document
220+
auto tmpPaths = qEnvironmentVariable("QDSAPP_CONFIG_PATH").split(QDir::listSeparator(), QString::SkipEmptyParts);
221221
#else
222222
auto tmpPaths = QString::fromUtf8(qgetenv("QDSAPP_CONFIG_PATH")).split(QDir::listSeparator(), QString::SkipEmptyParts);
223223
#endif

0 commit comments

Comments
 (0)