Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/Add.h')
-rw-r--r--src/cli/Add.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/cli/Add.h b/src/cli/Add.h
index dd0c3d8b5..2d9cf9710 100644
--- a/src/cli/Add.h
+++ b/src/cli/Add.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2017 KeePassXC Team <team@keepassxc.org>
+ * Copyright (C) 2019 KeePassXC Team <team@keepassxc.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,14 +18,20 @@
#ifndef KEEPASSXC_ADD_H
#define KEEPASSXC_ADD_H
-#include "Command.h"
+#include "DatabaseCommand.h"
-class Add : public Command
+class Add : public DatabaseCommand
{
public:
Add();
- ~Add();
- int execute(const QStringList& arguments) override;
+
+ int executeWithDatabase(QSharedPointer<Database> db, QSharedPointer<QCommandLineParser> parser) override;
+
+ static const QCommandLineOption UsernameOption;
+ static const QCommandLineOption UrlOption;
+ static const QCommandLineOption PasswordPromptOption;
+ static const QCommandLineOption GenerateOption;
+ static const QCommandLineOption PasswordLengthOption;
};
#endif // KEEPASSXC_ADD_H