summaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/sqlitestudiocli/commands/clicommandhistory.h
blob: 41c6f888e08864a2b57be69e0e4a2664b96b902f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef CLICOMMANDHISTORY_H
#define CLICOMMANDHISTORY_H

#include "clicommand.h"

class CliCommandHistory : public CliCommand
{
        Q_OBJECT

    public:
        void execute();
        QString shortHelp() const;
        QString fullHelp() const;
        void defineSyntax();

    private:
        enum ArgIds
        {
            OPER_TYPE,
            HIST_LIMIT,
            SHOW_LIMIT
        };

        void clear();
        void setMax(const QString& arg);
};

#endif // CLICOMMANDHISTORY_H