Fix no newlines warnings. Patch by Peter Oberndorfer
[kdevelopdvcssupport.git] / vcs / dvcs / ui / logview.h
blob14486d2d866a1ece7f145cc917071846cca15d4c
1 /***************************************************************************
2 * Copyright 2007 Robert Gruber <rgruber@users.sourceforge.net> *
3 * *
4 * Adapted for DVCS *
5 * Copyright 2008 Evgeniy Ivanov <powerfox@kde.ru> *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 ***************************************************************************/
14 #ifndef LOGVIEW_H
15 #define LOGVIEW_H
17 #include <QDialog>
18 #include <KJob>
20 #include "ui_logview.h"
22 class DVCSjob;
24 namespace KDevelop
26 class DistributedVersionControlPlugin;
29 /**
30 * Shows the output from @code dvcs log @endcode in a nice way.
31 * Create a DVCSjob by calling DVCSexecutor::log() and connect the job's
32 * result(KJob*) signal to LogView::slotJobFinished(KJob* job)
33 * @author Robert Gruber <rgruber@users.sourceforge.net>
35 class LogView : public QWidget, private Ui::LogViewBase
37 Q_OBJECT
38 public:
39 explicit LogView(KDevelop::DistributedVersionControlPlugin* plugin, DVCSjob* job=0, QWidget *parent = 0);
40 virtual ~LogView();
42 private slots:
43 /**
44 * Connect a job's result() signal to this slot. When called, the output from the job
45 * will be passed to the parseOutput() method and all found revisions will be displayed.
46 * @note If you pass a DVCSjob object to the ctor, it's result() signal
47 * will automatically be connected to this slot.
49 void slotJobFinished(KJob* job);
51 private:
52 KDevelop::DistributedVersionControlPlugin* m_plugin;
53 QString m_output;
56 #endif