1/*
2    Copyright (C) 2007 Staikos Computing Services Inc.
3
4    This library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Library General Public
6    License as published by the Free Software Foundation; either
7    version 2 of the License, or (at your option) any later version.
8
9    This library is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    Library General Public License for more details.
13
14    You should have received a copy of the GNU Library General Public License
15    along with this library; see the file COPYING.LIB.  If not, write to
16    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17    Boston, MA 02110-1301, USA.
18*/
19
20#ifndef EditCommandQt_h
21#define EditCommandQt_h
22
23#include <EditCommand.h>
24#include <QUndoCommand>
25#include <qglobal.h>
26
27class EditCommandQt
28#ifndef QT_NO_UNDOCOMMAND
29    : public QUndoCommand
30#endif
31{
32    public:
33#ifndef QT_NO_UNDOCOMMAND
34        EditCommandQt(WTF::RefPtr<WebCore::EditCommand> cmd, QUndoCommand *parent = 0);
35#else
36        EditCommandQt(WTF::RefPtr<WebCore::EditCommand> cmd);
37#endif
38        ~EditCommandQt();
39
40        void redo();
41        void undo();
42
43    private:
44        WTF::RefPtr<WebCore::EditCommand> m_cmd;
45        bool m_first;
46};
47
48#endif
49
50// vim: ts=4 sw=4 et
51