The Following User Says Thank You to mirakels For This Useful Post: | ||
![]() |
2010-03-09
, 12:26
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#12
|
![]() |
2010-03-09
, 17:02
|
Posts: 74 |
Thanked: 5 times |
Joined on Mar 2010
@ torino - italia
|
#13
|
![]() |
2010-03-09
, 17:10
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#14
|
Can you show us some code rows to understand how to write something useful for our needings?
multiCalendar->addCalendar (calendarName.toStdString(), COLOUR_YELLOW, 0, 1, type /*Local calendar*/, "Default" /*CalendarTune*/, "0.1" /*CalendarVersion*/, errorCode);
CCalendar *calendar = multiCalendar->getCalendarByName (calendarName.toStdString(), errorCode); CEvent *pEvent = new CEvent(title.toStdString(), description.toStdString(), "", sdateUtc, edateUtc); CAlarm *alarmEvent = new CAlarm(); alarmEvent->setDuration(E_AM_15MIN); alarmEvent->setTrigger(sdateUtc - 15 * 60); pEvent->setAlarm(alarmEvent); multiCalendar->addEvent(pEvent, calendar->getCalendarId(), errorCode);
CCalendar *calendar = multiCalendar->getCalendarByName (calendarName.toStdString(), errorCode); if (errorCode) { success = multiCalendar->deleteCalendar (calendar->getCalendarId(), errorCode); }
The Following 5 Users Say Thank You to krk969 For This Useful Post: | ||
![]() |
2010-03-09
, 17:32
|
Posts: 74 |
Thanked: 5 times |
Joined on Mar 2010
@ torino - italia
|
#15
|
![]() |
2010-03-09
, 17:38
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#16
|
I guess this code need headers. Do you save it in a file and then type this file in CLI to launch it?
The Following User Says Thank You to krk969 For This Useful Post: | ||
![]() |
2010-03-09
, 17:48
|
Posts: 74 |
Thanked: 5 times |
Joined on Mar 2010
@ torino - italia
|
#17
|
http://wiki.maemo.org/Documentation/...scover_Maemo_5
I also like to have a small cli app to add/update/remove calendar events.
(e.g. to create a simple cli tool to add easter dates for several years to the calendar)
Last edited by mirakels; 2010-03-09 at 12:14.