summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/FileTransfer.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-26 19:40:28 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-26 19:40:28 +0200
commitcaf38bbfe3279b9bea861e4d5b70f3c50c6e1755 (patch)
tree5ed7f83b0bdb584422f2e99489cfc81aac645500 /lib/Plugins/FileTransfer.cpp
parentfca6fa371006186d12a720cd48c270789c67d2e6 (diff)
downloadabrt-caf38bbfe3279b9bea861e4d5b70f3c50c6e1755.tar.gz
abrt-caf38bbfe3279b9bea861e4d5b70f3c50c6e1755.tar.xz
abrt-caf38bbfe3279b9bea861e4d5b70f3c50c6e1755.zip
add job ids (== thread ids) to warning/update DBus messages
renamed: comm_layer_inner_warning -> warn_client comm_layer_inner_status -> update_client Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/FileTransfer.cpp')
-rw-r--r--lib/Plugins/FileTransfer.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Plugins/FileTransfer.cpp b/lib/Plugins/FileTransfer.cpp
index 4ed9a236..dbda17fa 100644
--- a/lib/Plugins/FileTransfer.cpp
+++ b/lib/Plugins/FileTransfer.cpp
@@ -49,7 +49,7 @@ void CFileTransfer::SendFile(const std::string& pURL,
if (pURL == "")
{
- comm_layer_inner_warning("FileTransfer: URL not specified");
+ warn_client("FileTransfer: URL not specified");
return;
}
protocol = "";
@@ -64,7 +64,7 @@ void CFileTransfer::SendFile(const std::string& pURL,
}
}
- comm_layer_inner_status("Sending archive " + pFilename + " via " + protocol);
+ update_client("Sending archive " + pFilename + " via " + protocol);
if( pURL[len-1] == '/' )
{
@@ -116,7 +116,7 @@ void CFileTransfer::CreateArchive(const std::string& pArchiveName,
std::string cmdline;
int result;
- comm_layer_inner_status("Creating an archive...");
+ update_client("Creating an archive...");
/*TODO: consider library for archive creation, if there is any*/
@@ -171,7 +171,7 @@ void CFileTransfer::Run(const std::string& pActiveDir, const std::string& pArgs)
std::string dirname, archivename;
char hostname[HBLEN];
- comm_layer_inner_status("File Transfer: Creating a report...");
+ update_client("File Transfer: Creating a report...");
if (pArgs == "store")
{
@@ -192,8 +192,8 @@ void CFileTransfer::Run(const std::string& pActiveDir, const std::string& pArgs)
}
catch (CABRTException& e)
{
- comm_layer_inner_warning("CFileTransfer::Run(): Cannot create and send an archive: " + e.what());
- comm_layer_inner_status("CFileTransfer::Run(): Cannot create and send an archive: " + e.what());
+ warn_client("CFileTransfer::Run(): Cannot create and send an archive: " + e.what());
+ update_client("CFileTransfer::Run(): Cannot create and send an archive: " + e.what());
}
unlink(archivename.c_str());
}
@@ -221,8 +221,8 @@ void CFileTransfer::Run(const std::string& pActiveDir, const std::string& pArgs)
}
catch (CABRTException& e)
{
- comm_layer_inner_warning("CFileTransfer::Run(): Cannot create and send an archive: " + e.what());
- comm_layer_inner_status("CFileTransfer::Run(): Cannot create and send an archive: " + e.what());
+ warn_client("CFileTransfer::Run(): Cannot create and send an archive: " + e.what());
+ update_client("CFileTransfer::Run(): Cannot create and send an archive: " + e.what());
}
unlink(archivename.c_str());
}
@@ -242,7 +242,7 @@ void CFileTransfer::SetSettings(const map_plugin_settings_t& pSettings)
}
else
{
- comm_layer_inner_warning("FileTransfer: URL not specified");
+ warn_client("FileTransfer: URL not specified");
}
if (pSettings.find("RetryCount") != pSettings.end())