Changeset 6bd729b for src/app/main.cpp


Ignore:
Timestamp:
01/19/10 14:45:57 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
cfd615d
Parents:
0c658c1
Message:

work on alarm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/app/main.cpp

    r0c658c1 r6bd729b  
    22
    33#include <QtGui/QApplication>
     4#ifdef MAEMO
     5#include <alarmdialog.h>
     6#endif /* MAEMO */
    47
    58int main(int argc, char *argv[])
     
    1215    QApplication::setWindowIcon(QIcon(":/icons/fosdem.png"));
    1316
    14     MainWindow w;
    15     w.show();
     17    QWidget *window;
     18#ifdef MAEMO
     19    // if the app is run with two cmd-line arguments
     20    // an alarm dialog is to be displayed
     21    // Usage: $ ./fosdem eventId alarmId
     22    // Example: $ ./fosdem 521 13
     23    if(argc==3)
     24        window = new AlarmDialog(argc,argv);
     25    else
     26        window = new MainWindow;
     27#else
     28    window = new MainWindow;
     29#endif /* MAEMO */
     30    window->show();
    1631    return a.exec();
    1732}
Note: See TracChangeset for help on using the changeset viewer.