Commit ad58d75e authored by Laurent Montel's avatar Laurent Montel 😁

Add dbus supprt

parent b33ca19e
......@@ -17,7 +17,7 @@ add_executable( kshisen ${kshisen_SRCS} )
include_directories(${PHONON_INCLUDES})
target_link_libraries(kshisen Qt5::Gui KF5::CoreAddons KF5::KIOWidgets KF5::DNSSD Phonon::phonon4qt5
KF5::XmlGui KF5::I18n KF5KDEGames KF5KDEGamesPrivate KF5KMahjongglib )
KF5::XmlGui KF5::I18n KF5KDEGames KF5KDEGamesPrivate KF5KMahjongglib KF5::DBusAddons)
install( TARGETS kshisen ${INSTALL_TARGETS_DEFAULT_ARGS} )
......
......@@ -28,12 +28,15 @@
#include <QCommandLineParser>
#include <QApplication>
#include <KLocalizedString>
#include <KDBusService>
#include <QCommandLineParser>
static const char description[] = I18N_NOOP("A KDE game similar to Mahjongg");
int main(int argc, char **argv)
{
QApplication a(argc, argv);
KAboutData aboutData("kshisen", i18n("Shisen-Sho"),
KSHISEN_VERSION " #" KSHISEN_COMMIT, i18n(description), KAboutLicense::GPL,
i18n("(c) 1997, Mario Weilguni"));
......@@ -44,7 +47,6 @@ int main(int argc, char **argv)
aboutData.addCredit(i18n("Mauricio Piacentini"), i18n("KMahjonggLib integration for KDE4"), "mauricio@tabuleiro.com");
aboutData.addCredit(i18n("Jason Lane"), i18n("Added 'tiles removed' counter<br/>Tile smooth-scaling and window resizing"), "jglane@btopenworld.com");
aboutData.addCredit(i18n("Thanks also to everyone who should be listed here but is not!"));
QApplication a(argc, argv);
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
parser.addVersionOption();
......@@ -63,6 +65,8 @@ int main(int argc, char **argv)
migrate.setUiFiles(QStringList() << QLatin1String("kshisenui.rc"));
migrate.migrate();
KDBusService service;
App *app = new App();
app->show();
return a.exec();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment