kmailservice.cpp
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 #include <kapplication.h>
00020 #include <klocale.h>
00021 #include <kcmdlineargs.h>
00022 
00023 static const KCmdLineOptions options[] =
00024 {
00025     { "+url", 0, 0 },
00026     KCmdLineLastOption
00027 };
00028 
00029 int main( int argc, char **argv )
00030 {
00031     KLocale::setMainCatalogue("kdelibs");
00032     KCmdLineArgs::init( argc, argv, "kmailservice", I18N_NOOP("Mail service"), "unknown" );
00033     KCmdLineArgs::addCmdLineOptions( options );
00034 
00035     KApplication a( false, false );
00036 
00037     KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
00038 
00039     if ( args->count() != 1 )
00040         return 1;
00041 
00042     a.invokeMailer(KURL(args->arg(0)), a.startupId());
00043 
00044     return 0;
00045 }
 
This file is part of the documentation for kio Library Version 3.2.0.