-rw-r--r-- | core/launcher/launcher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index effcd24..fd89410 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp | |||
@@ -37,49 +37,49 @@ | |||
37 | #include <qdatetime.h> | 37 | #include <qdatetime.h> |
38 | #include <qdir.h> | 38 | #include <qdir.h> |
39 | #include <qwindowsystem_qws.h> | 39 | #include <qwindowsystem_qws.h> |
40 | #include <qtimer.h> | 40 | #include <qtimer.h> |
41 | #include <qcombobox.h> | 41 | #include <qcombobox.h> |
42 | #include <qvbox.h> | 42 | #include <qvbox.h> |
43 | #include <qlayout.h> | 43 | #include <qlayout.h> |
44 | #include <qstyle.h> | 44 | #include <qstyle.h> |
45 | #include <qpushbutton.h> | 45 | #include <qpushbutton.h> |
46 | #include <qtabbar.h> | 46 | #include <qtabbar.h> |
47 | #include <qwidgetstack.h> | 47 | #include <qwidgetstack.h> |
48 | #include <qlayout.h> | 48 | #include <qlayout.h> |
49 | #include <qregexp.h> | 49 | #include <qregexp.h> |
50 | #include <qmessagebox.h> | 50 | #include <qmessagebox.h> |
51 | #include <qframe.h> | 51 | #include <qframe.h> |
52 | #include <qpainter.h> | 52 | #include <qpainter.h> |
53 | #include <qlabel.h> | 53 | #include <qlabel.h> |
54 | #include <qtextstream.h> | 54 | #include <qtextstream.h> |
55 | 55 | ||
56 | #include "launcherview.h" | 56 | #include "launcherview.h" |
57 | #include "launcher.h" | 57 | #include "launcher.h" |
58 | #include "syncdialog.h" | 58 | #include "syncdialog.h" |
59 | #include "desktop.h" | 59 | #include "desktop.h" |
60 | #include <qpe/lnkproperties.h> | 60 | #include <qpe/lnkproperties.h> |
61 | #include "mrulist.h" | 61 | //#include "mrulist.h" |
62 | #include "qrsync.h" | 62 | #include "qrsync.h" |
63 | #include <stdlib.h> | 63 | #include <stdlib.h> |
64 | #include <unistd.h> | 64 | #include <unistd.h> |
65 | 65 | ||
66 | #if defined(_OS_LINUX_) || defined(Q_OS_LINUX) | 66 | #if defined(_OS_LINUX_) || defined(Q_OS_LINUX) |
67 | #include <stdio.h> | 67 | #include <stdio.h> |
68 | #include <sys/vfs.h> | 68 | #include <sys/vfs.h> |
69 | #include <mntent.h> | 69 | #include <mntent.h> |
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | #include <qpe/storage.h> | 72 | #include <qpe/storage.h> |
73 | #include "mediummountgui.h" | 73 | #include "mediummountgui.h" |
74 | //#define SHOW_ALL | 74 | //#define SHOW_ALL |
75 | 75 | ||
76 | // uidGen | 76 | // uidGen |
77 | 77 | ||
78 | // uidGen | 78 | // uidGen |
79 | namespace { | 79 | namespace { |
80 | QStringList configToMime( Config *cfg ){ | 80 | QStringList configToMime( Config *cfg ){ |
81 | QStringList mimes; | 81 | QStringList mimes; |
82 | bool tmpMime = true; | 82 | bool tmpMime = true; |
83 | cfg->setGroup("mimetypes" ); | 83 | cfg->setGroup("mimetypes" ); |
84 | tmpMime = cfg->readBoolEntry("all" ,true); | 84 | tmpMime = cfg->readBoolEntry("all" ,true); |
85 | if( tmpMime ){ | 85 | if( tmpMime ){ |
@@ -709,50 +709,50 @@ void Launcher::properties( AppLnk *appLnk ) | |||
709 | prop.exec(); | 709 | prop.exec(); |
710 | in_lnk_props = FALSE; | 710 | in_lnk_props = FALSE; |
711 | if ( got_lnk_change ) { | 711 | if ( got_lnk_change ) { |
712 | updateLink(lnk_change); | 712 | updateLink(lnk_change); |
713 | } | 713 | } |
714 | } | 714 | } |
715 | } | 715 | } |
716 | 716 | ||
717 | void Launcher::updateLink(const QString& link) | 717 | void Launcher::updateLink(const QString& link) |
718 | { | 718 | { |
719 | if (link.isNull()) | 719 | if (link.isNull()) |
720 | updateTabs(); | 720 | updateTabs(); |
721 | else if (link.isEmpty()) | 721 | else if (link.isEmpty()) |
722 | updateDocs(); | 722 | updateDocs(); |
723 | else | 723 | else |
724 | tabs->updateLink(link); | 724 | tabs->updateLink(link); |
725 | } | 725 | } |
726 | 726 | ||
727 | void Launcher::systemMessage( const QCString &msg, const QByteArray &data) | 727 | void Launcher::systemMessage( const QCString &msg, const QByteArray &data) |
728 | { | 728 | { |
729 | QDataStream stream( data, IO_ReadOnly ); | 729 | QDataStream stream( data, IO_ReadOnly ); |
730 | if ( msg == "closing(QString)" ){ | 730 | if ( msg == "closing(QString)" ){ |
731 | QString app; | 731 | QString app; |
732 | stream >> app; | 732 | stream >> app; |
733 | qWarning("app closed %s", app.latin1() ); | 733 | //qWarning("app closed %s", app.latin1() ); |
734 | MRUList::removeTask( app ); | 734 | // MRUList::removeTask( app ); |
735 | }else if ( msg == "linkChanged(QString)" ) { | 735 | }else if ( msg == "linkChanged(QString)" ) { |
736 | QString link; | 736 | QString link; |
737 | stream >> link; | 737 | stream >> link; |
738 | if ( in_lnk_props ) { | 738 | if ( in_lnk_props ) { |
739 | got_lnk_change = TRUE; | 739 | got_lnk_change = TRUE; |
740 | lnk_change = link; | 740 | lnk_change = link; |
741 | } else { | 741 | } else { |
742 | updateLink(link); | 742 | updateLink(link); |
743 | } | 743 | } |
744 | } else if ( msg == "busy()" ) { | 744 | } else if ( msg == "busy()" ) { |
745 | emit busy(); | 745 | emit busy(); |
746 | } else if ( msg == "notBusy(QString)" ) { | 746 | } else if ( msg == "notBusy(QString)" ) { |
747 | QString app; | 747 | QString app; |
748 | stream >> app; | 748 | stream >> app; |
749 | tabs->setBusy(FALSE); | 749 | tabs->setBusy(FALSE); |
750 | emit notBusy(app); | 750 | emit notBusy(app); |
751 | } else if ( msg == "mkdir(QString)" ) { | 751 | } else if ( msg == "mkdir(QString)" ) { |
752 | QString dir; | 752 | QString dir; |
753 | stream >> dir; | 753 | stream >> dir; |
754 | if ( !dir.isEmpty() ) | 754 | if ( !dir.isEmpty() ) |
755 | mkdir( dir ); | 755 | mkdir( dir ); |
756 | } else if ( msg == "rdiffGenSig(QString,QString)" ) { | 756 | } else if ( msg == "rdiffGenSig(QString,QString)" ) { |
757 | QString baseFile, sigFile; | 757 | QString baseFile, sigFile; |
758 | stream >> baseFile >> sigFile; | 758 | stream >> baseFile >> sigFile; |