summaryrefslogtreecommitdiffstats
path: root/libtdepim/kfileio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libtdepim/kfileio.cpp')
-rw-r--r--libtdepim/kfileio.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/libtdepim/kfileio.cpp b/libtdepim/kfileio.cpp
index e167662bb..fa963e167 100644
--- a/libtdepim/kfileio.cpp
+++ b/libtdepim/kfileio.cpp
@@ -48,20 +48,20 @@ KDE_EXPORT TQCString kFileToString(const TQString &aFileName, bool aEnsureNL, bo
if (!info.exists())
{
if (aVerbose)
- msgDialog(i18n("The specified file does not exist:\n%1").tqarg(aFileName));
+ msgDialog(i18n("The specified file does not exist:\n%1").arg(aFileName));
return TQCString();
}
if (info.isDir())
{
if (aVerbose)
- msgDialog(i18n("This is a folder and not a file:\n%1").tqarg(aFileName));
+ msgDialog(i18n("This is a folder and not a file:\n%1").arg(aFileName));
return TQCString();
}
if (!info.isReadable())
{
if (aVerbose)
msgDialog(i18n("You do not have read permissions "
- "to the file:\n%1").tqarg(aFileName));
+ "to the file:\n%1").arg(aFileName));
return TQCString();
}
if (len <= 0) return TQCString();
@@ -71,13 +71,13 @@ KDE_EXPORT TQCString kFileToString(const TQString &aFileName, bool aEnsureNL, bo
if (aVerbose) switch(file.status())
{
case IO_ReadError:
- msgDialog(i18n("Could not read file:\n%1").tqarg(aFileName));
+ msgDialog(i18n("Could not read file:\n%1").arg(aFileName));
break;
case IO_OpenError:
- msgDialog(i18n("Could not open file:\n%1").tqarg(aFileName));
+ msgDialog(i18n("Could not open file:\n%1").arg(aFileName));
break;
default:
- msgDialog(i18n("Error while reading file:\n%1").tqarg(aFileName));
+ msgDialog(i18n("Error while reading file:\n%1").arg(aFileName));
}
return TQCString();
}
@@ -94,7 +94,7 @@ KDE_EXPORT TQCString kFileToString(const TQString &aFileName, bool aEnsureNL, bo
if (readLen < len)
{
TQString msg = i18n("Could only read %1 bytes of %2.")
- .tqarg(readLen).tqarg(len);
+ .arg(readLen).arg(len);
msgDialog(msg);
return TQCString();
}
@@ -120,21 +120,21 @@ TQByteArray kFileToBytes(const TQString &aFileName, bool aVerbose)
{
if (aVerbose)
msgDialog(i18n("The specified file does not exist:\n%1")
- .tqarg(aFileName));
+ .arg(aFileName));
return result;
}
if (info.isDir())
{
if (aVerbose)
msgDialog(i18n("This is a folder and not a file:\n%1")
- .tqarg(aFileName));
+ .arg(aFileName));
return result;
}
if (!info.isReadable())
{
if (aVerbose)
msgDialog(i18n("You do not have read permissions "
- "to the file:\n%1").tqarg(aFileName));
+ "to the file:\n%1").arg(aFileName));
return result;
}
if (len <= 0) return result;
@@ -144,26 +144,26 @@ TQByteArray kFileToBytes(const TQString &aFileName, bool aVerbose)
if (aVerbose) switch(file.status())
{
case IO_ReadError:
- msgDialog(i18n("Could not read file:\n%1").tqarg(aFileName));
+ msgDialog(i18n("Could not read file:\n%1").arg(aFileName));
break;
case IO_OpenError:
- msgDialog(i18n("Could not open file:\n%1").tqarg(aFileName));
+ msgDialog(i18n("Could not open file:\n%1").arg(aFileName));
break;
default:
- msgDialog(i18n("Error while reading file:\n%1").tqarg(aFileName));
+ msgDialog(i18n("Error while reading file:\n%1").arg(aFileName));
}
return result;
}
result.resize(len);
readLen = file.readBlock(result.data(), len);
- kdDebug(5300) << TQString( "len %1" ).tqarg(len) << endl;
+ kdDebug(5300) << TQString( "len %1" ).arg(len) << endl;
if (readLen < len)
{
TQString msg;
msg = i18n("Could only read %1 bytes of %2.")
- .tqarg(readLen).tqarg(len);
+ .arg(readLen).arg(len);
msgDialog(msg);
return result;
}
@@ -191,7 +191,7 @@ KDE_EXPORT bool kBytesToFile(const char* aBuffer, int len,
{
TQString str;
str = i18n("File %1 exists.\nDo you want to replace it?")
- .tqarg(aFileName);
+ .arg(aFileName);
rc = KMessageBox::warningContinueCancel(0,
str, i18n("Save to File"), i18n("&Replace"));
if (rc != KMessageBox::Continue) return FALSE;
@@ -209,7 +209,7 @@ KDE_EXPORT bool kBytesToFile(const char* aBuffer, int len,
if (!aVerbose) return FALSE;
rc = KMessageBox::warningContinueCancel(0,
i18n("Failed to make a backup copy of %1.\nContinue anyway?")
- .tqarg(aFileName),
+ .arg(aFileName),
i18n("Save to File"), KStdGuiItem::save() );
if (rc != KMessageBox::Continue) return FALSE;
}
@@ -221,14 +221,14 @@ KDE_EXPORT bool kBytesToFile(const char* aBuffer, int len,
if (aVerbose) switch(file.status())
{
case IO_WriteError:
- msgDialog(i18n("Could not write to file:\n%1").tqarg(aFileName));
+ msgDialog(i18n("Could not write to file:\n%1").arg(aFileName));
break;
case IO_OpenError:
msgDialog(i18n("Could not open file for writing:\n%1")
- .tqarg(aFileName));
+ .arg(aFileName));
break;
default:
- msgDialog(i18n("Error while writing file:\n%1").tqarg(aFileName));
+ msgDialog(i18n("Error while writing file:\n%1").arg(aFileName));
}
return FALSE;
}
@@ -238,13 +238,13 @@ KDE_EXPORT bool kBytesToFile(const char* aBuffer, int len,
if (writeLen < 0)
{
if (aVerbose)
- msgDialog(i18n("Could not write to file:\n%1").tqarg(aFileName));
+ msgDialog(i18n("Could not write to file:\n%1").arg(aFileName));
return FALSE;
}
else if (writeLen < len)
{
TQString msg = i18n("Could only write %1 bytes of %2.")
- .tqarg(writeLen).tqarg(len);
+ .arg(writeLen).arg(len);
if (aVerbose)
msgDialog(msg);
return FALSE;
@@ -283,7 +283,7 @@ TQString checkAndCorrectPermissionsIfPossible( const TQString &toCheck,
if ( !fiToCheck.exists() ) {
error.append( i18n("%1 does not exist")
- .tqarg(toCheck) + "\n");
+ .arg(toCheck) + "\n");
}
// check the access bit of a folder.
@@ -295,7 +295,7 @@ TQString checkAndCorrectPermissionsIfPossible( const TQString &toCheck,
if ( !g.isReadable() ) {
if ( chmod( toCheckEnc, statbuffer.st_mode + S_IXUSR ) != 0 ) {
error.append( i18n("%1 is not accessible and that is "
- "unchangeable.").tqarg(toCheck) + "\n");
+ "unchangeable.").arg(toCheck) + "\n");
} else {
kdDebug() << "Changed access bit for " << toCheck << endl;
}
@@ -316,7 +316,7 @@ TQString checkAndCorrectPermissionsIfPossible( const TQString &toCheck,
// Lets try changing it.
if ( chmod( toCheckEnc, statbuffer.st_mode + S_IRUSR ) != 0 ) {
error.append( i18n("%1 is not readable and that is unchangeable.")
- .tqarg(toCheck) + "\n");
+ .arg(toCheck) + "\n");
} else {
kdDebug() << "Changed the read bit for " << toCheck << endl;
}
@@ -332,7 +332,7 @@ TQString checkAndCorrectPermissionsIfPossible( const TQString &toCheck,
// Lets try changing it.
if ( chmod (toCheckEnc, statbuffer.st_mode + S_IWUSR ) != 0 ) {
error.append( i18n("%1 is not writable and that is unchangeable.")
- .tqarg(toCheck) + "\n");
+ .arg(toCheck) + "\n");
} else {
kdDebug() << "Changed the write bit for " << toCheck << endl;
}
@@ -346,7 +346,7 @@ TQString checkAndCorrectPermissionsIfPossible( const TQString &toCheck,
// First check if the folder is readable for us. If not, we get
// some ugly crashes.
if ( !g.isReadable() ){
- error.append(i18n("Folder %1 is inaccessible.").tqarg(toCheck) + "\n");
+ error.append(i18n("Folder %1 is inaccessible.").arg(toCheck) + "\n");
} else {
const TQFileInfoList *list = g.entryInfoList();
TQFileInfoListIterator it( *list );