1. Marko Käning
  2. KDE-Tests

Source

KDE-Tests / HotNewStuff / khotnewstuff.cpp

The default branch has multiple heads

#include <kapplication.h>
#include <kdebug.h>
#include <klocale.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>

#include <knewstuff3/downloaddialog.h>

static KCmdLineArgs* args = 0;

int main(int argc, char **argv)
{
	KAboutData aboutData("khotnewstuff_example", 0, ki18n("KHotNewStuff"), "0.4");
	aboutData.setProgramIconName("get-hot-new-stuff");

	KCmdLineArgs::init( argc, argv, &aboutData );

	args = KCmdLineArgs::parsedArgs();

	KApplication i;

	//KNS3::DownloadDialog dialog(args->arg(0));
	KNS3::DownloadDialog dialog(NULL);
	dialog.exec();
	foreach (const KNS3::Entry& e, dialog.changedEntries()) {
		kDebug() << "Changed Entry: " << e.name();
	}

	return 0;
}