mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kio: use the macro for sending data in KIO::SlaveInterface::setConfig()
no functional change Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
be70ca9e8c
commit
e4ce49f138
4 changed files with 5 additions and 7 deletions
|
@ -29,7 +29,7 @@
|
||||||
#include "jobuidelegate.h"
|
#include "jobuidelegate.h"
|
||||||
#include "kjobtrackerinterface.h"
|
#include "kjobtrackerinterface.h"
|
||||||
|
|
||||||
#define KIO_ARGS QByteArray packedArgs; QDataStream stream( &packedArgs, QIODevice::WriteOnly ); stream
|
#define KIO_ARGS QByteArray packedArgs; QDataStream stream(&packedArgs, QIODevice::WriteOnly); stream
|
||||||
|
|
||||||
namespace KIO {
|
namespace KIO {
|
||||||
class SlaveInterface;
|
class SlaveInterface;
|
||||||
|
|
|
@ -60,9 +60,6 @@ extern "C" {
|
||||||
|
|
||||||
using namespace KIO;
|
using namespace KIO;
|
||||||
|
|
||||||
#define KIO_DATA QByteArray data; QDataStream stream( &data, QIODevice::WriteOnly ); stream
|
|
||||||
#define KIO_FILESIZE_T(x) quint64(x)
|
|
||||||
|
|
||||||
namespace KIO {
|
namespace KIO {
|
||||||
|
|
||||||
static const int s_quit_signals[] = {
|
static const int s_quit_signals[] = {
|
||||||
|
|
|
@ -171,9 +171,7 @@ void SlaveInterface::kill()
|
||||||
|
|
||||||
void SlaveInterface::setConfig(const MetaData &config)
|
void SlaveInterface::setConfig(const MetaData &config)
|
||||||
{
|
{
|
||||||
QByteArray data;
|
KIO_DATA << config;
|
||||||
QDataStream stream(&data, QIODevice::WriteOnly);
|
|
||||||
stream << config;
|
|
||||||
m_connection->send(CMD_CONFIG, data);
|
m_connection->send(CMD_CONFIG, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#define KIO_DATA QByteArray data; QDataStream stream(&data, QIODevice::WriteOnly); stream
|
||||||
|
#define KIO_FILESIZE_T(x) quint64(x)
|
||||||
|
|
||||||
class KUrl;
|
class KUrl;
|
||||||
|
|
||||||
namespace KIO {
|
namespace KIO {
|
||||||
|
|
Loading…
Add table
Reference in a new issue