Changeset View
Changeset View
Standalone View
Standalone View
network/ioslave/main.cpp
Show All 16 Lines | 1 | /* | |||
---|---|---|---|---|---|
17 | Lesser General Public License for more details. | 17 | Lesser General Public License for more details. | ||
18 | 18 | | |||
19 | You should have received a copy of the GNU Lesser General Public | 19 | You should have received a copy of the GNU Lesser General Public | ||
20 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | 20 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
21 | */ | 21 | */ | ||
22 | 22 | | |||
23 | #include "networkslave.h" | 23 | #include "networkslave.h" | ||
24 | 24 | | |||
25 | // KDE | | |||
26 | #include <KComponentData> | | |||
27 | // Qt | 25 | // Qt | ||
28 | #include <QtCore/QCoreApplication> | 26 | #include <QtCore/QCoreApplication> | ||
29 | 27 | | |||
30 | 28 | | |||
31 | extern "C" | 29 | extern "C" | ||
32 | { | 30 | { | ||
33 | 31 | | |||
34 | int Q_DECL_EXPORT kdemain( int argc, char** argv ) | 32 | int Q_DECL_EXPORT kdemain( int argc, char** argv ) | ||
35 | { | 33 | { | ||
36 | KComponentData componentData( "kio_network" ); | | |||
37 | QCoreApplication app( argc, argv ); | 34 | QCoreApplication app( argc, argv ); | ||
35 | app.setApplicationName(QLatin1String("kio_network")); | ||||
38 | 36 | | |||
39 | NetworkSlave slave( argv[1], argv[2], argv[3] ); | 37 | NetworkSlave slave( argv[1], argv[2], argv[3] ); | ||
40 | slave.dispatchLoop(); | 38 | slave.dispatchLoop(); | ||
41 | 39 | | |||
42 | return 0; | 40 | return 0; | ||
43 | } | 41 | } | ||
44 | 42 | | |||
45 | } | 43 | } |