summaryrefslogtreecommitdiffstats
path: root/quanta/utility/quantanetaccess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/utility/quantanetaccess.cpp')
-rw-r--r--quanta/utility/quantanetaccess.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/quanta/utility/quantanetaccess.cpp b/quanta/utility/quantanetaccess.cpp
index 095f9e08..dbaf1ce3 100644
--- a/quanta/utility/quantanetaccess.cpp
+++ b/quanta/utility/quantanetaccess.cpp
@@ -13,9 +13,9 @@
* *
***************************************************************************/
-#include <qstring.h>
-#include <qwidget.h>
-#include <qdir.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqdir.h>
#include <kio/netaccess.h>
#include <kurl.h>
@@ -28,7 +28,7 @@
#include "quantanetaccess.h"
#include "project.h"
-bool QuantaNetAccess::upload(const QString& src, const KURL& target, QWidget* window, bool confirm)
+bool QuantaNetAccess::upload(const TQString& src, const KURL& target, TQWidget* window, bool confirm)
{
bool ok = KIO::NetAccess::upload(src, target, window);
if (ok) {
@@ -42,7 +42,7 @@ bool QuantaNetAccess::upload(const QString& src, const KURL& target, QWidget* wi
bool QuantaNetAccess::file_copy( const KURL& src, const KURL& target, int permissions,
- bool overwrite, bool resume, QWidget* window, bool confirm)
+ bool overwrite, bool resume, TQWidget* window, bool confirm)
{
bool ok = KIO::NetAccess::file_copy( src, target, permissions, overwrite, resume, window );
if (ok) {
@@ -56,7 +56,7 @@ bool QuantaNetAccess::file_copy( const KURL& src, const KURL& target, int permis
bool QuantaNetAccess::file_move( const KURL& src, const KURL& target, int permissions,
- bool overwrite, bool resume, QWidget* window, bool confirm)
+ bool overwrite, bool resume, TQWidget* window, bool confirm)
{
// don't ask if move is inside of the project
bool oldConfirm = confirm;
@@ -79,7 +79,7 @@ bool QuantaNetAccess::file_move( const KURL& src, const KURL& target, int permis
}
-bool QuantaNetAccess::dircopy( const KURL::List & srcList, const KURL & target, QWidget* window, bool confirm )
+bool QuantaNetAccess::dircopy( const KURL::List & srcList, const KURL & target, TQWidget* window, bool confirm )
{
bool ok = KIO::NetAccess::dircopy( srcList, target, window );
if (ok) {
@@ -98,7 +98,7 @@ bool QuantaNetAccess::dircopy( const KURL::List & srcList, const KURL & target,
}
-bool QuantaNetAccess::move( const KURL::List& srcList, const KURL& target, QWidget* window, bool confirm )
+bool QuantaNetAccess::move( const KURL::List& srcList, const KURL& target, TQWidget* window, bool confirm )
{
KURL targetURL = adjustURL(target);
bool oldConfirm = confirm;
@@ -142,7 +142,7 @@ bool QuantaNetAccess::move( const KURL::List& srcList, const KURL& target, QWidg
}
-bool QuantaNetAccess::del( const KURL & url, QWidget* window, bool confirm )
+bool QuantaNetAccess::del( const KURL & url, TQWidget* window, bool confirm )
{
if ( !checkProjectDel(url, window, confirm)) {
return false;
@@ -156,7 +156,7 @@ bool QuantaNetAccess::del( const KURL & url, QWidget* window, bool confirm )
}
-bool QuantaNetAccess::mkdir( const KURL & url, QWidget* window, int permissions, bool confirm )
+bool QuantaNetAccess::mkdir( const KURL & url, TQWidget* window, int permissions, bool confirm )
{
KURL u = url;
u.adjustPath(-1); //some servers refuse to create directories ending with a slash
@@ -171,7 +171,7 @@ bool QuantaNetAccess::mkdir( const KURL & url, QWidget* window, int permissions,
}
-void QuantaNetAccess::checkProjectInsert(const KURL& target, QWidget* window, bool confirm)
+void QuantaNetAccess::checkProjectInsert(const KURL& target, TQWidget* window, bool confirm)
{
if ( !Project::ref()->hasProject()) return;
KURL saveUrl = adjustURL(target);
@@ -180,7 +180,7 @@ void QuantaNetAccess::checkProjectInsert(const KURL& target, QWidget* window, bo
{
if (confirm)
{
- QString nice = QExtFileInfo::toRelative(saveUrl, baseURL).path();
+ TQString nice = QExtFileInfo::toRelative(saveUrl, baseURL).path();
nice = KStringHandler::lsqueeze(nice, 60);
if ( KMessageBox::Yes != KMessageBox::questionYesNo(window, i18n("<qt>Do you want to add <br><b>%1</b><br> to the project?</qt>").arg(nice), i18n("Add to Project"), KStdGuiItem::add(), i18n("Do Not Add"), "AddToProject") )
{
@@ -196,7 +196,7 @@ void QuantaNetAccess::checkProjectInsert(const KURL& target, QWidget* window, bo
}
-bool QuantaNetAccess::checkProjectRemove(const KURL& src, QWidget* window, bool confirm, bool remove)
+bool QuantaNetAccess::checkProjectRemove(const KURL& src, TQWidget* window, bool confirm, bool remove)
{
if ( !Project::ref()->hasProject() ) return true;
KURL url = adjustURL(src);
@@ -205,7 +205,7 @@ bool QuantaNetAccess::checkProjectRemove(const KURL& src, QWidget* window, bool
{
if (confirm)
{
- QString nice = QExtFileInfo::toRelative(url, baseURL).path();
+ TQString nice = QExtFileInfo::toRelative(url, baseURL).path();
nice = KStringHandler::lsqueeze(nice, 60);
if ( KMessageBox::Continue != KMessageBox::warningContinueCancel(window, i18n("<qt>Do you really want to remove <br><b>%1</b><br> from the project?</qt>").arg(nice), i18n("Remove From Project"), KStdGuiItem::remove(), "RemoveFromProject") )
{
@@ -219,7 +219,7 @@ bool QuantaNetAccess::checkProjectRemove(const KURL& src, QWidget* window, bool
}
-bool QuantaNetAccess::checkProjectDel(const KURL& src, QWidget* window, bool confirm)
+bool QuantaNetAccess::checkProjectDel(const KURL& src, TQWidget* window, bool confirm)
{
KURL url = adjustURL(src);
if ( Project::ref()->hasProject() )
@@ -228,7 +228,7 @@ bool QuantaNetAccess::checkProjectDel(const KURL& src, QWidget* window, bool con
{
if (confirm)
{
- QString nice = url.prettyURL(0, KURL::StripFileProtocol);
+ TQString nice = url.prettyURL(0, KURL::StripFileProtocol);
nice = KStringHandler::csqueeze(nice, 60);
if ( KMessageBox::Continue != KMessageBox::warningContinueCancel(window, i18n("<qt>Do you really want to delete <br><b>%1</b><br> and remove it from the project?</qt>").arg(nice), i18n("Delete & Remove From Project"), KStdGuiItem::del(), "DeleteAndRemoveFromProject") )
{
@@ -241,7 +241,7 @@ bool QuantaNetAccess::checkProjectDel(const KURL& src, QWidget* window, bool con
}
// confirm normal delete if wanted
if (confirm) {
- QString nice = url.prettyURL(0, KURL::StripFileProtocol);
+ TQString nice = url.prettyURL(0, KURL::StripFileProtocol);
nice = KStringHandler::csqueeze(nice, 60);
return (KMessageBox::Continue == KMessageBox::warningContinueCancel(window, i18n("<qt>Do you really want to delete <br><b>%1</b>?</qt>").arg(nice), i18n("Delete File or Folder"), KStdGuiItem::del(), "DeleteFileOrFolder") );
}
@@ -253,16 +253,16 @@ KURL QuantaNetAccess::adjustURL(const KURL &url)
KURL u = url;
if ( u.isLocalFile() )
{
- QDir dir(u.path());
+ TQDir dir(u.path());
u.setPath(dir.canonicalPath());
}
return u;
}
-void QuantaNetAccess::errorMsg(QWidget* window)
+void QuantaNetAccess::errorMsg(TQWidget* window)
{
- QString msg = KIO::NetAccess::lastErrorString();
+ TQString msg = KIO::NetAccess::lastErrorString();
if ( !msg.isEmpty())
KMessageBox::sorry(window, msg);
}