~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to vcs/cvsservice/cvslogpage.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 200?-2003 by KDevelop Authors                           *
3
 
 *   www.kdevelop.org                                                      *
4
 
 *                                                                         *
5
 
 *   This program is free software; you can redistribute it and/or modify  *
6
 
 *   it under the terms of the GNU General Public License as published by  *
7
 
 *   the Free Software Foundation; either version 2 of the License, or     *
8
 
 *   (at your option) any later version.                                   *
9
 
 *                                                                         *
10
 
 ***************************************************************************/
11
 
 
12
 
#ifndef CVSLOGPAGE_H
13
 
#define CVSLOGPAGE_H
14
 
 
15
 
#include "cvsservicedcopIface.h"
16
 
#include <qwidget.h>
17
 
#include "bufferedstringreader.h"
18
 
 
19
 
class CvsJob_stub;
20
 
class CvsService_stub;
21
 
class QTextBrowser;
22
 
 
23
 
/**
24
 
Implementation for the form displaying 'cvs log' output.
25
 
 
26
 
@author KDevelop Authors
27
 
*/
28
 
class CVSLogPage : public QWidget, virtual public CVSServiceDCOPIface
29
 
{
30
 
    Q_OBJECT
31
 
public:
32
 
    CVSLogPage( CvsService_stub *cvsService, QWidget *parent=0, const char *name=0, int flags=0 );
33
 
    virtual ~CVSLogPage();
34
 
 
35
 
    void startLog( const QString &workDir, const QString &pathName );
36
 
    void cancel();
37
 
 
38
 
signals:
39
 
    // Emitted when the user click upon a link
40
 
    void diffRequested( const QString &pathName, const QString &revA, const QString &revB );
41
 
 
42
 
private slots:
43
 
    void slotLinkClicked( const QString &link );
44
 
    // DCOP Iface
45
 
    virtual void slotJobExited( bool normalExit, int exitStatus );
46
 
    virtual void slotReceivedOutput( QString someOutput );
47
 
    virtual void slotReceivedErrors( QString someErrors );
48
 
 
49
 
//private:
50
 
//    void parseLogContent( const QString& text );
51
 
 
52
 
private:
53
 
    QString m_pathName;
54
 
    QTextBrowser *m_textBrowser;
55
 
    QString m_logTextBackup;
56
 
        BufferedStringReader m_outputBuffer;
57
 
        QStringList m_diffStrings;
58
 
 
59
 
    CvsService_stub *m_cvsService;
60
 
    CvsJob_stub *m_cvsLogJob;
61
 
};
62
 
 
63
 
#endif