Diffstat (limited to 'noncore/settings/networksettings/mainwindowimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp index 8ea241d..2d714ca 100644 --- a/noncore/settings/networksettings/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindowimp.cpp | |||
@@ -631,24 +631,29 @@ void MainWindowImp::changeProfile(){ | |||
631 | void MainWindowImp::makeChannel() | 631 | void MainWindowImp::makeChannel() |
632 | { | 632 | { |
633 | channel = new QCopChannel( "QPE/Application/networksettings", this ); | 633 | channel = new QCopChannel( "QPE/Application/networksettings", this ); |
634 | connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), | 634 | connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), |
635 | this, SLOT(receive(const QCString&, const QByteArray&)) ); | 635 | this, SLOT(receive(const QCString&, const QByteArray&)) ); |
636 | } | 636 | } |
637 | 637 | ||
638 | void MainWindowImp::receive(const QCString &msg, const QByteArray &arg) | 638 | void MainWindowImp::receive(const QCString &msg, const QByteArray &arg) |
639 | { | 639 | { |
640 | bool found = false; | 640 | bool found = false; |
641 | qDebug("MainWindowImp::receive QCop msg >"+msg+"<"); | 641 | qDebug("MainWindowImp::receive QCop msg >"+msg+"<"); |
642 | 642 | ||
643 | if (msg == "raise") { | ||
644 | raise(); | ||
645 | return; | ||
646 | } | ||
647 | |||
643 | QString dest = msg.left(msg.find("(")); | 648 | QString dest = msg.left(msg.find("(")); |
644 | QCString param = msg.right(msg.length() - msg.find("(") - 1); | 649 | QCString param = msg.right(msg.length() - msg.find("(") - 1); |
645 | param = param.left( param.length() - 1 ); | 650 | param = param.left( param.length() - 1 ); |
646 | qDebug("dest >%s< param >"+param+"<",dest.latin1()); | 651 | qDebug("dest >%s< param >"+param+"<",dest.latin1()); |
647 | 652 | ||
648 | QMap<Module*, QLibrary*>::Iterator it; | 653 | QMap<Module*, QLibrary*>::Iterator it; |
649 | for( it = libraries.begin(); it != libraries.end(); ++it ){ | 654 | for( it = libraries.begin(); it != libraries.end(); ++it ){ |
650 | qDebug("plugin >%s<", it.key()->type().latin1() ); | 655 | qDebug("plugin >%s<", it.key()->type().latin1() ); |
651 | if(it.key()->type() == dest){ | 656 | if(it.key()->type() == dest){ |
652 | it.key()->receive( param, arg ); | 657 | it.key()->receive( param, arg ); |
653 | found = true; | 658 | found = true; |
654 | } | 659 | } |