diff options
Diffstat (limited to 'src/svnfrontend/svnactions.h')
-rw-r--r-- | src/svnfrontend/svnactions.h | 179 |
1 files changed, 90 insertions, 89 deletions
diff --git a/src/svnfrontend/svnactions.h b/src/svnfrontend/svnactions.h index 96a2b5e..783d36a 100644 --- a/src/svnfrontend/svnactions.h +++ b/src/svnfrontend/svnactions.h @@ -31,15 +31,15 @@ #include <kurl.h> #include <kguiitem.h> -#include <qobject.h> -#include <qdatetime.h> -#include <qstringlist.h> +#include <tqobject.h> +#include <tqdatetime.h> +#include <tqstringlist.h> class ItemDisplay; class SvnItem; class KDialog; class KDialogBase; -class QDialog; +class TQDialog; class CContextListener; class KProcess; class SvnActionsData; @@ -60,9 +60,10 @@ namespace KIO { /** @author Rajko Albrecht */ -class SvnActions : public QObject,public SimpleLogCb +class SvnActions : public TQObject,public SimpleLogCb { Q_OBJECT + TQ_OBJECT public: enum ThreadType { checkupdatethread, @@ -70,48 +71,48 @@ public: checkmodifiedthread }; - SvnActions(ItemDisplay *parent, const char *name = 0,bool processes_blocked=false); + SvnActions(ItemDisplay *tqparent, const char *name = 0,bool processes_blocked=false); ~SvnActions(); void reInitClient(); //svn::Client&svnClient(){return m_Svnclient;} svn::Client* svnclient(); void prepareUpdate(bool ask); - template<class T> KDialogBase* createDialog(T**ptr,const QString&_head,bool OkCance=false, + template<class T> KDialogBase* createDialog(T**ptr,const TQString&_head,bool OkCance=false, const char*name="standard_dialog", bool showHelp=false,bool modal=true, const KGuiItem&u1 = KGuiItem()); - bool makeGet(const svn::Revision&start, const QString&what,const QString&target, - const svn::Revision&peg=svn::Revision::UNDEFINED,QWidget*dlgparent=0); + bool makeGet(const svn::Revision&start, const TQString&what,const TQString&target, + const svn::Revision&peg=svn::Revision::UNDEFINED,TQWidget*dlgtqparent=0); - bool addItems(const QValueList<svn::Path> &items,svn::Depth depth=svn::DepthEmpty); - bool addItems(const QStringList&w,svn::Depth depth=svn::DepthEmpty); - void checkAddItems(const QString&path,bool print_error_box=true); + bool addItems(const TQValueList<svn::Path> &items,svn::Depth depth=svn::DepthEmpty); + bool addItems(const TQStringList&w,svn::Depth depth=svn::DepthEmpty); + void checkAddItems(const TQString&path,bool print_error_box=true); bool makeDelete(const svn::Pathes&); - bool makeDelete(const QStringList&); - void makeLock(const QStringList&,const QString&,bool); - void makeUnlock(const QStringList&,bool); - - bool makeStatus(const QString&what, svn::StatusEntries&dlist, svn::Revision&where, bool rec=false,bool all=true); - bool makeStatus(const QString&what, svn::StatusEntries&dlist, svn::Revision&where, bool rec,bool all,bool display_ignored,bool updates=false); - bool makeList(const QString&url,svn::DirEntries&dlist,svn::Revision&where,bool rec=false); - - bool createModifiedCache(const QString&base); - bool checkModifiedCache(const QString&path); - bool checkConflictedCache(const QString&path); - bool checkReposLockCache(const QString&path); - bool checkReposLockCache(const QString&path,svn::SharedPointer<svn::Status>&t); + bool makeDelete(const TQStringList&); + void makeLock(const TQStringList&,const TQString&,bool); + void makeUnlock(const TQStringList&,bool); + + bool maketqStatus(const TQString&what, svn::StatusEntries&dlist, svn::Revision&where, bool rec=false,bool all=true); + bool maketqStatus(const TQString&what, svn::StatusEntries&dlist, svn::Revision&where, bool rec,bool all,bool display_ignored,bool updates=false); + bool makeList(const TQString&url,svn::DirEntries&dlist,svn::Revision&where,bool rec=false); + + bool createModifiedCache(const TQString&base); + bool checkModifiedCache(const TQString&path); + bool checkConflictedCache(const TQString&path); + bool checkReposLockCache(const TQString&path); + bool checkReposLockCache(const TQString&path,svn::SharedPointer<svn::tqStatus>&t); void addModifiedCache(const svn::StatusPtr&what); - void deleteFromModifiedCache(const QString&what); + void deleteFromModifiedCache(const TQString&what); bool makeIgnoreEntry(SvnItem*which,bool unignore); bool isLockNeeded(SvnItem*which,const svn::Revision&where); - QString searchProperty(QString&store, const QString&property, const QString&start,const svn::Revision&where,bool up=false); - svn::PathPropertiesMapListPtr propList(const QString&which,const svn::Revision&where,bool cacheOnly); + TQString searchProperty(TQString&store, const TQString&property, const TQString&start,const svn::Revision&where,bool up=false); + svn::PathPropertiesMapListPtr propList(const TQString&which,const svn::Revision&where,bool cacheOnly); - bool changeProperties(const svn::PropertiesMap&setList,const QValueList<QString>&,const QString&path); + bool changeProperties(const svn::PropertiesMap&setList,const TQValueList<TQString>&,const TQString&path); //! generate and displays a revision tree /*! @@ -122,66 +123,66 @@ public: * \param startr startrevision for log * \param endr endrevision for log */ - void makeTree(const QString&what,const svn::Revision&rev, + void makeTree(const TQString&what,const svn::Revision&rev, const svn::Revision&startr=svn::Revision(1), const svn::Revision&endr=svn::Revision::HEAD); void makeLog(const svn::Revision&start,const svn::Revision&end,const svn::Revision&peg,SvnItem*k,bool list_files=false,int limit = 0); - void makeLog(const svn::Revision&start,const svn::Revision&end,const svn::Revision&peg,const QString&,bool list_files=false, int limit=0); - svn::SharedPointer<svn::LogEntriesMap> getLog(const svn::Revision&start,const svn::Revision& end,const svn::Revision&peg,const QString&,bool list_files, int limit,QWidget*parent=0); - virtual bool getSingleLog(svn::LogEntry&,const svn::Revision&,const QString&,const svn::Revision&,QString&root); + void makeLog(const svn::Revision&start,const svn::Revision&end,const svn::Revision&peg,const TQString&,bool list_files=false, int limit=0); + svn::SharedPointer<svn::LogEntriesMap> getLog(const svn::Revision&start,const svn::Revision& end,const svn::Revision&peg,const TQString&,bool list_files, int limit,TQWidget*tqparent=0); + virtual bool getSingleLog(svn::LogEntry&,const svn::Revision&,const TQString&,const svn::Revision&,TQString&root); void makeBlame(const svn::Revision&start, const svn::Revision&end, SvnItem*k); - void makeBlame(const svn::Revision&start, const svn::Revision&end, const QString&,QWidget*parent=0,const svn::Revision&peg=svn::Revision::UNDEFINED,SimpleLogCb*_acb=0); - void makeUpdate(const QStringList&what,const svn::Revision&rev,bool recurse); - bool makeSwitch(const QString&rUrl,const QString&tPath,const svn::Revision&r,svn::Depth depth,const svn::Revision&peg,bool stickydepth,bool ignore_externals,bool allow_unversioned); - bool makeSwitch(const QString&path,const QString&what); - bool makeRelocate(const QString&fUrl,const QString&tUrl,const QString&path,bool rec = true); - bool makeCheckout(const QString&,const QString&,const svn::Revision&,const svn::Revision&,svn::Depth,bool isExport,bool openit,bool ignore_externals,bool overwrite,QWidget*p); - void makeInfo(QPtrList<SvnItem> lst,const svn::Revision&,const svn::Revision&,bool recursive = true); - void makeInfo(const QStringList&lst,const svn::Revision&,const svn::Revision&,bool recursive = true); + void makeBlame(const svn::Revision&start, const svn::Revision&end, const TQString&,TQWidget*tqparent=0,const svn::Revision&peg=svn::Revision::UNDEFINED,SimpleLogCb*_acb=0); + void makeUpdate(const TQStringList&what,const svn::Revision&rev,bool recurse); + bool makeSwitch(const TQString&rUrl,const TQString&tPath,const svn::Revision&r,svn::Depth depth,const svn::Revision&peg,bool stickydepth,bool ignore_externals,bool allow_unversioned); + bool makeSwitch(const TQString&path,const TQString&what); + bool makeRelocate(const TQString&fUrl,const TQString&tUrl,const TQString&path,bool rec = true); + bool makeCheckout(const TQString&,const TQString&,const svn::Revision&,const svn::Revision&,svn::Depth,bool isExport,bool openit,bool ignore_externals,bool overwrite,TQWidget*p); + void makeInfo(TQPtrList<SvnItem> lst,const svn::Revision&,const svn::Revision&,bool recursive = true); + void makeInfo(const TQStringList&lst,const svn::Revision&,const svn::Revision&,bool recursive = true); bool makeCommit(const svn::Targets&); - void CheckoutExport(const QString&what,bool _exp,bool urlisTarget=false); - - QString getInfo(QPtrList<SvnItem> lst,const svn::Revision&rev,const svn::Revision&peg,bool recursive,bool all=true); - QString getInfo(const QString&_what,const svn::Revision&rev,const svn::Revision&peg,bool recursive,bool all=true); - - QString makeMkdir(const QString&); - bool makeMkdir(const QStringList&,const QString&); - bool isLocalWorkingCopy(const KURL&url,QString&_baseUri); - bool createUpdateCache(const QString&what); - bool checkUpdateCache(const QString&path)const; - bool isUpdated(const QString&path)const; - bool getUpdated(const QString&path,svn::SharedPointer<svn::Status>&d)const; + void CheckoutExport(const TQString&what,bool _exp,bool urlisTarget=false); + + TQString getInfo(TQPtrList<SvnItem> lst,const svn::Revision&rev,const svn::Revision&peg,bool recursive,bool all=true); + TQString getInfo(const TQString&_what,const svn::Revision&rev,const svn::Revision&peg,bool recursive,bool all=true); + + TQString makeMkdir(const TQString&); + bool makeMkdir(const TQStringList&,const TQString&); + bool isLocalWorkingCopy(const KURL&url,TQString&_baseUri); + bool createUpdateCache(const TQString&what); + bool checkUpdateCache(const TQString&path)const; + bool isUpdated(const TQString&path)const; + bool getUpdated(const TQString&path,svn::SharedPointer<svn::tqStatus>&d)const; void clearUpdateCache(); - void removeFromUpdateCache(const QStringList&what,bool exact_only); + void removeFromUpdateCache(const TQStringList&what,bool exact_only); void stopCheckModThread(); void stopCheckUpdateThread(); - void startFillCache(const QString&path); + void startFillCache(const TQString&path); void stopFillCache(); void stopMain(); void killallThreads(); bool checkUpdatesRunning(); - void getaddedItems(const QString&path,svn::StatusEntries&target); + void getaddedItems(const TQString&path,svn::StatusEntries&target); - bool makeCopy(const QString&,const QString&,const svn::Revision&rev); - bool makeCopy(const KURL::List&,const QString&,const svn::Revision&rev); + bool makeCopy(const TQString&,const TQString&,const svn::Revision&rev); + bool makeCopy(const KURL::List&,const TQString&,const svn::Revision&rev); - bool makeMove(const QString&,const QString&,bool); - bool makeMove(const KURL::List&,const QString&,bool); + bool makeMove(const TQString&,const TQString&,bool); + bool makeMove(const KURL::List&,const TQString&,bool); - virtual bool makeCleanup(const QString&); + virtual bool makeCleanup(const TQString&); - bool get(const QString&what,const QString& to,const svn::Revision&rev,const svn::Revision&peg,QWidget*p); - bool singleInfo(const QString&what,const svn::Revision&rev,svn::InfoEntry&target,const svn::Revision&_peg=svn::Revision::UNDEFINED); + bool get(const TQString&what,const TQString& to,const svn::Revision&rev,const svn::Revision&peg,TQWidget*p); + bool singleInfo(const TQString&what,const svn::Revision&rev,svn::InfoEntry&target,const svn::Revision&_peg=svn::Revision::UNDEFINED); - void setContextData(const QString&,const QString&); + void setContextData(const TQString&,const TQString&); void clearContextData(); - QString getContextData(const QString&)const; + TQString getContextData(const TQString&)const; bool threadRunning(ThreadType which); - virtual void customEvent ( QCustomEvent * e ); + virtual void customEvent ( TQCustomEvent * e ); bool doNetworking(); @@ -193,13 +194,13 @@ protected: void makeAdd(bool rec); CheckModifiedThread*m_CThread,*m_UThread; FillCacheThread*m_FCThread; - void makeDiffinternal(const QString&,const svn::Revision&,const QString&,const svn::Revision&,QWidget*,const svn::Revision&peg=svn::Revision::UNDEFINED); - void makeDiffExternal(const QString&p1,const svn::Revision&start,const QString&p2,const svn::Revision&end,const svn::Revision&_peg,bool isDir,QWidget*p,bool rec=true); + void makeDiffinternal(const TQString&,const svn::Revision&,const TQString&,const svn::Revision&,TQWidget*,const svn::Revision&peg=svn::Revision::UNDEFINED); + void makeDiffExternal(const TQString&p1,const svn::Revision&start,const TQString&p2,const svn::Revision&end,const svn::Revision&_peg,bool isDir,TQWidget*p,bool rec=true); public slots: - virtual void dispDiff(const QByteArray&); + virtual void dispDiff(const TQByteArray&); virtual void slotProperties(); - virtual void slotNotifyMessage(const QString&); + virtual void slotNotifyMessage(const TQString&); virtual void slotCommit(); virtual void slotUpdateHeadRec(); virtual void slotUpdateTo(); @@ -210,38 +211,38 @@ public slots: virtual void slotCheckout(); virtual void slotExport(); virtual void slotRevert(); - virtual void slotRevertItems(const QStringList&); + virtual void slotRevertItems(const TQStringList&); virtual void slotSwitch(); - virtual void slotResolved(const QString&); - virtual void slotResolve(const QString&); - virtual void makeDiff(const QString&,const svn::Revision&,const svn::Revision&,const svn::Revision&_peg,bool isDir); - virtual void makeDiff(const QString&,const svn::Revision&,const QString&,const svn::Revision&); - virtual void makeDiff(const QString&,const svn::Revision&,const QString&,const svn::Revision&,const svn::Revision&,bool,QWidget*p); - virtual void makeDiff(const QString&,const svn::Revision&,const QString&,const svn::Revision&,QWidget*); - virtual void makeNorecDiff(const QString&,const svn::Revision&,const QString&,const svn::Revision&,QWidget*); - virtual void slotImport(const QString&,const QString&,const QString&,svn::Depth,bool noIgnore,bool noUnknown); - virtual void slotMergeWcRevisions(const QString&,const svn::Revision&,const svn::Revision&,bool,bool,bool,bool); - virtual void slotMerge(const QString&,const QString&, const QString&, + virtual void slotResolved(const TQString&); + virtual void slotResolve(const TQString&); + virtual void makeDiff(const TQString&,const svn::Revision&,const svn::Revision&,const svn::Revision&_peg,bool isDir); + virtual void makeDiff(const TQString&,const svn::Revision&,const TQString&,const svn::Revision&); + virtual void makeDiff(const TQString&,const svn::Revision&,const TQString&,const svn::Revision&,const svn::Revision&,bool,TQWidget*p); + virtual void makeDiff(const TQString&,const svn::Revision&,const TQString&,const svn::Revision&,TQWidget*); + virtual void makeNorecDiff(const TQString&,const svn::Revision&,const TQString&,const svn::Revision&,TQWidget*); + virtual void slotImport(const TQString&,const TQString&,const TQString&,svn::Depth,bool noIgnore,bool noUnknown); + virtual void slotMergeWcRevisions(const TQString&,const svn::Revision&,const svn::Revision&,bool,bool,bool,bool); + virtual void slotMerge(const TQString&,const TQString&, const TQString&, const svn::Revision&,const svn::Revision&,const svn::Revision&, bool,bool,bool,bool); - virtual void slotMergeExternal(const QString&src1,const QString&src2, const QString&target, + virtual void slotMergeExternal(const TQString&src1,const TQString&src2, const TQString&target, const svn::Revision&rev1,const svn::Revision&rev2,const svn::Revision&_peg,bool); - virtual void slotExtraLogMsg(const QString&); - virtual void slotMakeCat(const svn::Revision&start, const QString&what,const QString&disp,const svn::Revision&peg,QWidget*dlgparent); + virtual void slotExtraLogMsg(const TQString&); + virtual void slotMakeCat(const svn::Revision&start, const TQString&what,const TQString&disp,const svn::Revision&peg,TQWidget*dlgtqparent); virtual void slotCancel(bool); signals: - void clientException(const QString&); - void sendNotify(const QString&); + void clientException(const TQString&); + void sendNotify(const TQString&); void reinitItem(SvnItem*); void sigRefreshAll(); void sigThreadsChanged(); void sigRefreshCurrent(SvnItem*); void sigRefreshIcons(bool); - void sigExtraLogMsg(const QString&); - void sigGotourl(const QString&); - void sigCacheStatus(Q_LONG,Q_LONG); + void sigExtraLogMsg(const TQString&); + void sigGotourl(const TQString&); + void sigCachetqStatus(TQ_LONG,TQ_LONG); protected slots: virtual void wroteStdin(KProcess*); |