Warning, file /sdk/cervisia/protocolview.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *  Copyright (C) 1999-2002 Bernd Gehrmann
0003  *                          bernd@mail.berlios.de
0004  *  Copyright (c) 2003-2007 Christian Loose <christian.loose@kdemail.net>
0005  *
0006  * This program is free software; you can redistribute it and/or modify
0007  * it under the terms of the GNU General Public License as published by
0008  * the Free Software Foundation; either version 2 of the License, or
0009  * (at your option) any later version.
0010  *
0011  * This program is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  * GNU General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU General Public License
0017  * along with this program; if not, write to the Free Software
0018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0019  */
0020 
0021 #ifndef PROTOCOLVIEW_H
0022 #define PROTOCOLVIEW_H
0023 
0024 #include <QTextEdit>
0025 
0026 class OrgKdeCervisia5CvsserviceCvsjobInterface;
0027 
0028 class ProtocolView : public QTextEdit
0029 {
0030     Q_OBJECT
0031 public:
0032     explicit ProtocolView(const QString &appId, QWidget *parent = nullptr);
0033     ~ProtocolView() override;
0034 
0035     bool startJob(bool isUpdateJob = false);
0036 
0037 protected:
0038     void contextMenuEvent(QContextMenuEvent *event) override;
0039 
0040 public Q_SLOTS:
0041     void slotReceivedOutput(QString buffer);
0042     void slotJobExited(bool normalExit, int exitStatus);
0043 
0044 signals:
0045     void receivedLine(QString line);
0046     void jobFinished(bool normalExit, int exitStatus);
0047 
0048 private Q_SLOTS:
0049     void cancelJob();
0050     void configChanged();
0051 
0052 private:
0053     void processOutput();
0054     void appendLine(const QString &line);
0055     void appendHtml(const QString &html);
0056 
0057     QString buf;
0058 
0059     QColor conflictColor;
0060     QColor localChangeColor;
0061     QColor remoteChangeColor;
0062 
0063     OrgKdeCervisia5CvsserviceCvsjobInterface *job;
0064 
0065     bool m_isUpdateJob;
0066 };
0067 
0068 #endif
0069 
0070 // Local Variables:
0071 // c-basic-offset: 4
0072 // End: