Mercurial > hg > easyhg-kdiff3
diff kdiff3/src-QT4/fileaccess.h @ 80:fcd146072e0c
0.9.93
author | joachim99 |
---|---|
date | Tue, 06 Jan 2009 17:51:29 +0000 |
parents | 1184fc843210 |
children | 6f42f5bd218e |
line wrap: on
line diff
--- a/kdiff3/src-QT4/fileaccess.h Tue Jan 06 17:15:53 2009 +0000 +++ b/kdiff3/src-QT4/fileaccess.h Tue Jan 06 17:51:29 2009 +0000 @@ -13,11 +13,13 @@ #include <QDialog> #include <QDateTime> +#include <QEventLoop> +#include <QLabel> +#include <QProgressBar> -#include <kprogress.h> +#include <kprogressdialog.h> #include <kio/job.h> #include <kio/jobclasses.h> -#include <kurldrag.h> #include <list> @@ -53,8 +55,8 @@ QString fileName() const; // Just the name-part of the path, without parent directories QString filePath() const; // The path-string that was used during construction QString prettyAbsPath() const; - KURL url() const; - QString absFilePath() const; + KUrl url() const; + QString absoluteFilePath() const; bool isLocal() const; @@ -73,7 +75,7 @@ static bool makeDir( const QString& ); static bool removeDir( const QString& ); static bool exists( const QString& ); - static QString cleanDirPath( const QString& ); + static QString cleanPath( const QString& ); //bool chmod( const QString& ); bool rename( const QString& ); @@ -83,7 +85,7 @@ QString getStatusText(); private: void setUdsEntry( const KIO::UDSEntry& e ); - KURL m_url; + KUrl m_url; bool m_bLocal; bool m_bValidData; @@ -106,7 +108,7 @@ QString m_group; QString m_name; QString m_path; - QString m_absFilePath; + QString m_absoluteFilePath; QString m_localCopy; QString m_statusText; // Might contain an error string, when the last operation didn't succeed. @@ -156,17 +158,17 @@ bool scanLocalDirectory( const QString& dirName, t_DirectoryList* dirList ); private slots: - void slotStatResult( KIO::Job* ); - void slotSimpleJobResult( KIO::Job* pJob ); - void slotPutJobResult( KIO::Job* pJob ); + void slotStatResult( KJob* ); + void slotSimpleJobResult( KJob* pJob ); + void slotPutJobResult( KJob* pJob ); - void slotGetData(KIO::Job*,const QByteArray&); - void slotPutData(KIO::Job*, QByteArray&); + void slotGetData(KJob*,const QByteArray&); + void slotPutData(KJob*, QByteArray&); - void slotListDirInfoMessage( KIO::Job*, const QString& msg ); + void slotListDirInfoMessage( KJob*, const QString& msg ); void slotListDirProcessNewEntries( KIO::Job *, const KIO::UDSEntryList& l ); - void slotPercent( KIO::Job* pJob, unsigned long percent ); + void slotPercent( KJob* pJob, unsigned long percent ); }; class ProgressDialog : public QDialog @@ -192,7 +194,7 @@ void setSubRangeTransformation( double dMin, double dMax ); void exitEventLoop(); - void enterEventLoop( KIO::Job* pJob, const QString& jobInfo ); + void enterEventLoop( KJob* pJob, const QString& jobInfo ); bool wasCancelled(); void show(); @@ -220,8 +222,8 @@ int m_progressDelayTimer; std::list<QEventLoop*> m_eventLoopStack; - KProgress* m_pProgressBar; - KProgress* m_pSubProgressBar; + QProgressBar* m_pProgressBar; + QProgressBar* m_pSubProgressBar; QLabel* m_pInformation; QLabel* m_pSubInformation; QLabel* m_pSlowJobInfo; @@ -230,7 +232,7 @@ QTime m_t1; QTime m_t2; bool m_bWasCancelled; - KIO::Job* m_pJob; + KJob* m_pJob; QString m_currentJobInfo; // Needed if the job doesn't stop after a reasonable time. bool m_bStayHidden; protected: