-rw-r--r-- | core/launcher/server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/launcher/server.cpp b/core/launcher/server.cpp index 42186d3..15cd686 100644 --- a/core/launcher/server.cpp +++ b/core/launcher/server.cpp | |||
@@ -321,48 +321,50 @@ bool Server::setKeyboardLayout( const QString &kb ) | |||
321 | #endif | 321 | #endif |
322 | 322 | ||
323 | void Server::systemMsg(const QCString &msg, const QByteArray &data) | 323 | void Server::systemMsg(const QCString &msg, const QByteArray &data) |
324 | { | 324 | { |
325 | QDataStream stream( data, IO_ReadOnly ); | 325 | QDataStream stream( data, IO_ReadOnly ); |
326 | 326 | ||
327 | if ( msg == "securityChanged()" ) { | 327 | if ( msg == "securityChanged()" ) { |
328 | if ( transferServer ) | 328 | if ( transferServer ) |
329 | transferServer->authorizeConnections(); | 329 | transferServer->authorizeConnections(); |
330 | 330 | ||
331 | if ( qcopBridge ) | 331 | if ( qcopBridge ) |
332 | qcopBridge->authorizeConnections(); | 332 | qcopBridge->authorizeConnections(); |
333 | #warning FIXME support TempScreenSaverMode | 333 | #warning FIXME support TempScreenSaverMode |
334 | #if 0 | 334 | #if 0 |
335 | } else if ( msg == "setTempScreenSaverMode(int,int)" ) { | 335 | } else if ( msg == "setTempScreenSaverMode(int,int)" ) { |
336 | int mode, pid; | 336 | int mode, pid; |
337 | stream >> mode >> pid; | 337 | stream >> mode >> pid; |
338 | tsmMonitor->setTempMode(mode, pid); | 338 | tsmMonitor->setTempMode(mode, pid); |
339 | #endif | 339 | #endif |
340 | } else if ( msg == "linkChanged(QString)" ) { | 340 | } else if ( msg == "linkChanged(QString)" ) { |
341 | QString link; | 341 | QString link; |
342 | stream >> link; | 342 | stream >> link; |
343 | odebug << "desktop.cpp systemMsg -> linkchanged( " << link << " )" << oendl; | 343 | odebug << "desktop.cpp systemMsg -> linkchanged( " << link << " )" << oendl; |
344 | docList->linkChanged(link); | 344 | docList->linkChanged(link); |
345 | } else if (msg =="reforceDocuments()") { | ||
346 | docList->reforceDocuments(); | ||
345 | } else if ( msg == "serviceChanged(QString)" ) { | 347 | } else if ( msg == "serviceChanged(QString)" ) { |
346 | MimeType::updateApplications(); | 348 | MimeType::updateApplications(); |
347 | } else if ( msg == "mkdir(QString)" ) { | 349 | } else if ( msg == "mkdir(QString)" ) { |
348 | QString dir; | 350 | QString dir; |
349 | stream >> dir; | 351 | stream >> dir; |
350 | if ( !dir.isEmpty() ) | 352 | if ( !dir.isEmpty() ) |
351 | mkdir( dir ); | 353 | mkdir( dir ); |
352 | } else if ( msg == "rdiffGenSig(QString,QString)" ) { | 354 | } else if ( msg == "rdiffGenSig(QString,QString)" ) { |
353 | QString baseFile, sigFile; | 355 | QString baseFile, sigFile; |
354 | stream >> baseFile >> sigFile; | 356 | stream >> baseFile >> sigFile; |
355 | QRsync::generateSignature( baseFile, sigFile ); | 357 | QRsync::generateSignature( baseFile, sigFile ); |
356 | } else if ( msg == "rdiffGenDiff(QString,QString,QString)" ) { | 358 | } else if ( msg == "rdiffGenDiff(QString,QString,QString)" ) { |
357 | QString baseFile, sigFile, deltaFile; | 359 | QString baseFile, sigFile, deltaFile; |
358 | stream >> baseFile >> sigFile >> deltaFile; | 360 | stream >> baseFile >> sigFile >> deltaFile; |
359 | QRsync::generateDiff( baseFile, sigFile, deltaFile ); | 361 | QRsync::generateDiff( baseFile, sigFile, deltaFile ); |
360 | } else if ( msg == "rdiffApplyPatch(QString,QString)" ) { | 362 | } else if ( msg == "rdiffApplyPatch(QString,QString)" ) { |
361 | QString baseFile, deltaFile; | 363 | QString baseFile, deltaFile; |
362 | stream >> baseFile >> deltaFile; | 364 | stream >> baseFile >> deltaFile; |
363 | if ( !QFile::exists( baseFile ) ) { | 365 | if ( !QFile::exists( baseFile ) ) { |
364 | QFile f( baseFile ); | 366 | QFile f( baseFile ); |
365 | f.open( IO_WriteOnly ); | 367 | f.open( IO_WriteOnly ); |
366 | f.close(); | 368 | f.close(); |
367 | } | 369 | } |
368 | QRsync::applyDiff( baseFile, deltaFile ); | 370 | QRsync::applyDiff( baseFile, deltaFile ); |