Kate
katerecoverbar.h
Go to the documentation of this file.
00001 /* This file is part of the Kate project. 00002 * 00003 * Copyright (C) 2010 Dominik Haumann <dhaumann kde org> 00004 * Copyright (C) 2010 Diana-Victoria Tiriplica <diana.tiriplica@gmail.com> 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public License 00017 * along with this library; see the file COPYING.LIB. If not, write to 00018 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 * Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef _KATE_RECOVER_H__ 00023 #define _KATE_RECOVER_H__ 00024 00025 #include "kateviewhelpers.h" 00026 00027 #include <QByteArray> 00028 00029 class KProcess; 00030 class KateView; 00031 class KateDocument; 00032 00033 namespace Ui { 00034 class RecoverWidget; 00035 } 00036 00037 class KateRecoverBar : public KateViewBarWidget 00038 { 00039 Q_OBJECT 00040 00041 public: 00042 explicit KateRecoverBar(KateView *view, QWidget *parent = 0); 00043 ~KateRecoverBar (); 00044 00045 protected Q_SLOTS: 00046 void showWhatsThis(const QString&); 00047 void viewDiff(); 00048 00049 private: 00050 KateView *const m_view; 00051 Ui::RecoverWidget *m_ui; 00052 00053 protected Q_SLOTS: 00054 void slotDataAvailable(); 00055 void slotDiffFinished(); 00056 00057 private: 00058 KProcess* m_proc; 00059 QByteArray m_diffContent; 00060 }; 00061 00062 #endif //_KATE_RECOVER_H__ 00063 00064 // kate: space-indent on; indent-width 2; replace-tabs on;
KDE 4.6 API Reference