Changeset 6bd729b


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

Location:
src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • src/alarm/alarm.cpp

    r0c658c1 r6bd729b  
    1919    /* Add exec command action */
    2020    action = alarm_event_add_actions(event, 1);
    21     QString command = QString("/home/maemo/work/alarm/bin/alarmdialog %1").arg(QString::number(aEventId));
     21    QString command = QString("/home/maemo/work/fosdem-maemo/bin/fosdem %1").arg(QString::number(aEventId));
    2222    alarm_action_set_exec_command(action, command.toLocal8Bit().data());
    2323    action->flags |= ALARM_ACTION_TYPE_EXEC;
  • src/app/app.pro

    r0c658c1 r6bd729b  
     1include(../global.pri)
    12TEMPLATE = app
    23TARGET = fosdem
     
    910DEPENDPATH += . ../gui
    1011TARGETDEPS += $$DESTDIR/libmvc.a $$DESTDIR/libgui.a $$DESTDIR/libsql.a
     12maemo {
     13    LIBS += -L$$DESTDIR -lqalarm -lalarm
     14    INCLUDEPATH += ../alarm
     15    DEPENDPATH +=  ../alarm
     16    TARGETDEPS += $$DESTDIR/libqalarm.a
     17}
    1118
    1219SOURCES += main.cpp
  • 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}
  • src/gui/gui.pro

    r0c658c1 r6bd729b  
    1 include(global.pri)
     1include(../global.pri)
    22TEMPLATE = lib
    33TARGET = gui
  • src/mvc/mvc.pro

    r0c658c1 r6bd729b  
     1include(../global.pri)
    12TEMPLATE = lib
    23TARGET = mvc
     
    1011DEPENDPATH += . ../orm
    1112TARGETDEPS += $$DESTDIR/liborm.a
     13maemo {
     14    LIBS += -L$$DESTDIR -lqalarm -lalarm
     15    INCLUDEPATH += ../alarm
     16    DEPENDPATH +=  ../alarm
     17    TARGETDEPS += $$DESTDIR/libqalarm.a
     18}
    1219
    1320HEADERS += \
  • src/mvc/treeview.cpp

    r0c658c1 r6bd729b  
    55#include "event.h"
    66#include "eventmodel.h"
     7
     8#ifdef MAEMO
     9#include <alarm.h>
     10#endif
    711
    812#include <QDebug>
     
    6367                    static_cast<Event*>(aIndex.internalPointer())->setHasAlarm(false); // list of events
    6468                    event.setHasAlarm(false); // update DB
     69#ifdef MAEMO
     70                    // remove alarm from the 'alarmd' alrms list
     71                    Alarm alarm;
     72                    alarm.deleteAlarm(event.id());
     73                    // TODO: test if removing was successfull
     74#endif /* MAEMO */
    6575                }
    6676                else
     
    6878                    static_cast<Event*>(aIndex.internalPointer())->setHasAlarm(true); // list of events
    6979                    event.setHasAlarm(true);
     80#ifdef MAEMO
     81                    // add alarm to the 'alarmd'
     82                    Alarm alarm;
     83                    int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10));
     84                    qDebug() << "cookie: " << cookie;
     85#endif /* MAEMO */
    7086                }
    7187                qDebug() << " ALARM [" << qVariantValue<QString>(aIndex.data()) << "] -> " << event.hasAlarm();
  • src/schedule.en.xml

    r0c658c1 r6bd729b  
    22<schedule>
    33 <conference>
    4   <title>FOSDEM 2009</title>
     4  <title>FOSDEM 2010</title>
    55  <subtitle>Free and Opensource Software Developers European Meeting</subtitle>
    66  <venue>ULB (Campus Solbosch)</venue>
    77  <city>Brussels</city>
    8   <start>2009-02-07</start>
    9   <end>2009-02-08</end>
     8  <start>2010-02-07</start>
     9  <end>2010-02-08</end>
    1010  <days>2</days>
    1111  <day_change>08:00</day_change>
    1212  <timeslot_duration>00:15</timeslot_duration>
    1313 </conference>
    14  <day date="2009-02-07" index="1">
     14 <day date="2010-02-07" index="1">
    1515  <room name="Janson">
    1616   <event id="528">
     
    333333    <language>English</language>
    334334    <abstract>The talk will show the main results of the FLOSSMetrics project. In particular, it will show how to obtain data about the history of software development of more than 2,000 FLOSS projects, which kind of data it is and how it can  be used, and some results of using it in a research environment.</abstract>
    335     <description>FLOSSMetrics is collecting data from the CVS/SVN repos, mailing lists and issue tracking systems of several thousands of FOSS projects, and collecting all of it into a database that is offerered to researchers and others for data mining. See http://melquiades.flossmetrics.org for the data currently been offered. The project will end in August 2009, and more data and more projects are expected in the meantime.</description>
     335    <description>FLOSSMetrics is collecting data from the CVS/SVN repos, mailing lists and issue tracking systems of several thousands of FOSS projects, and collecting all of it into a database that is offerered to researchers and others for data mining. See http://melquiades.flossmetrics.org for the data currently been offered. The project will end in August 2010, and more data and more projects are expected in the meantime.</description>
    336336    <persons>
    337337     <person id="214">Jesus M. Gonzalez Barahona</person>
     
    423423    <type>Lightning-Talk</type>
    424424    <language>English</language>
    425     <abstract>The past, present and future of the project. This talk will coincide with Opsview v3.0 release scheduled for early February 2009.</abstract>
     425    <abstract>The past, present and future of the project. This talk will coincide with Opsview v3.0 release scheduled for early February 2010.</abstract>
    426426    <description>Opsview is network monitoring software that significantly extends the functionality of Nagios and integrates tools such as MRTG, NMIS, RANCID and Net-SNMP. Opsview is developed using Catalyst web framework and MySQL database.</description>
    427427    <persons>
     
    720720    <type>Other</type>
    721721    <language>English</language>
    722     <abstract>Welcome to the KDE developer room at FOSDEM 2009.</abstract>
     722    <abstract>Welcome to the KDE developer room at FOSDEM 2010.</abstract>
    723723    <description></description>
    724724    <persons>
     
    870870    <type>Podium</type>
    871871    <language>English</language>
    872     <abstract>Keynote and welcome to the PostgreSQL and *BSD developer room at FOSDEM 2009.</abstract>
     872    <abstract>Keynote and welcome to the PostgreSQL and *BSD developer room at FOSDEM 2010.</abstract>
    873873    <description></description>
    874874    <persons>
     
    10011001    <type>Other</type>
    10021002    <language>English</language>
    1003     <abstract>Welcome to the GNOME developer room at FOSDEM 2009.</abstract>
     1003    <abstract>Welcome to the GNOME developer room at FOSDEM 2010.</abstract>
    10041004    <description></description>
    10051005    <persons>
     
    14581458    <type>Other</type>
    14591459    <language>English</language>
    1460     <abstract>Welcome to the openSUSE developer room at FOSDEM 2009.</abstract>
     1460    <abstract>Welcome to the openSUSE developer room at FOSDEM 2010.</abstract>
    14611461    <description></description>
    14621462    <persons>
     
    24912491    <type>Other</type>
    24922492    <language>English</language>
    2493     <abstract>Welcome to the OpenOffice.org developer room at FOSDEM 2009.</abstract>
     2493    <abstract>Welcome to the OpenOffice.org developer room at FOSDEM 2010.</abstract>
    24942494    <description></description>
    24952495    <persons>
     
    26362636  </room>
    26372637 </day>
    2638  <day date="2009-02-08" index="2">
     2638 <day date="2010-02-08" index="2">
    26392639  <room name="Janson">
    26402640   <event id="786">
     
    29252925in more features has made many aspects of the wiki harder to use over time.
    29262926
    2927 In 2009, MediaWiki developers are turning their eye towards usability
     2927In 2010, MediaWiki developers are turning their eye towards usability
    29282928and design issues. As with the scaling problems we've tackled before, we
    29292929have to be able to target anything from a tiny personal or intranet wiki
     
    311331132.2.- Procedures: instalaltion, management, update, etc.
    311431143.- ModularIT community project</abstract>
    3115     <description>ModularIT is a virtuliced and distributed modular services architecture based on free software. This project has been released for the spanish community at the beginning of 2008 and by January 2009 it will be translated to english. Right now it is downloadable and before the end of the year we will begin to develop the project through a public SVN.
     3115    <description>ModularIT is a virtuliced and distributed modular services architecture based on free software. This project has been released for the spanish community at the beginning of 2008 and by January 2010 it will be translated to english. Right now it is downloadable and before the end of the year we will begin to develop the project through a public SVN.
    31163116
    31173117ModularIT is the result of 10 years of hard working from Grupo CPD (www.grupocpd.com) with free software systems and network services. we are a free software companies network from the Canary Islands, Spain. we are interested in presenting the project at FOSDEM.
     
    31613161    <language>English</language>
    31623162    <abstract>GPG/PGP and CAcert keysigning party</abstract>
    3163     <description>See [http://fosdem.org/2009/keysigning] for details.</description>
     3163    <description>See [http://fosdem.org/2010/keysigning] for details.</description>
    31643164    <persons>
    31653165     <person id="486">Joost van Baal</person>
     
    34953495    <type>Other</type>
    34963496    <language>English</language>
    3497     <abstract>Welcome to the Crossdesktop developer room at FOSDEM 2009.</abstract>
     3497    <abstract>Welcome to the Crossdesktop developer room at FOSDEM 2010.</abstract>
    34983498    <description></description>
    34993499    <persons>
     
    38623862    <type>Other</type>
    38633863    <language>English</language>
    3864     <abstract>Welcome to the Drupal developer room at FOSDEM 2009.</abstract>
     3864    <abstract>Welcome to the Drupal developer room at FOSDEM 2010.</abstract>
    38653865    <description></description>
    38663866    <persons>
     
    48704870    <type>Other</type>
    48714871    <language>English</language>
    4872     <abstract>Welcome to the Ruby and Rails developer room at FOSDEM 2009.</abstract>
     4872    <abstract>Welcome to the Ruby and Rails developer room at FOSDEM 2010.</abstract>
    48734873    <description></description>
    48744874    <persons>
Note: See TracChangeset for help on using the changeset viewer.