summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp
diff options
context:
space:
mode:
authorChris Adams <christopher.adams@nokia.com>2010-10-11 12:13:23 +1000
committerChris Adams <christopher.adams@nokia.com>2010-10-11 12:13:23 +1000
commitd745e266ebeb08fe28f0a6ed46bc02fe8c275ca3 (patch)
treedda008ea06f0bfc2eed11e85aaabb87e5cefb2d1 /doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp
parentc796ed708b1966b3b0ce2d4783a08c190203d780 (diff)
Rename itemInstances() to itemOccurrences()
Also, fix remaining usages of InstanceOrigin to be Parent. Rename QOrganizerItemInstanceFetchRequest to OccurrenceFetchRequest.
Diffstat (limited to 'doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp')
-rw-r--r--doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp b/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp
index 39ef15cfc7..9883841f68 100644
--- a/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp
+++ b/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp
@@ -90,7 +90,7 @@ void snippets()
//! [Creating a recurrent event]
//! [Retrieving occurrences of a particular recurrent event within a time period]
- QList<QOrganizerItem> instances = defaultManager.itemInstances(recEvent, startDateTime, endDateTime);
+ QList<QOrganizerItem> instances = defaultManager.itemOccurrences(recEvent, startDateTime, endDateTime);
//! [Retrieving occurrences of a particular recurrent event within a time period]
qDebug() << "dumping retrieved instances:";
foreach(const QOrganizerItem& currInst, instances)
@@ -101,12 +101,12 @@ void snippets()
//! [Retrieving the next 5 occurrences of a particular recurrent event]
- instances = defaultManager.itemInstances(recEvent, QDateTime::currentDateTime(), QDateTime(), 5);
+ instances = defaultManager.itemOccurrences(recEvent, QDateTime::currentDateTime(), QDateTime(), 5);
//! [Retrieving the next 5 occurrences of a particular recurrent event]
//! [Retrieving the next 10 occurrences of any item (Agenda View)]
// XXX TODO: make this more convenient.
- // QOIM::itemInstances(count) ?
+ // QOIM::itemOccurrences(count) ?
//! [Retrieving the next 10 occurrences of any item (Agenda View)]
//! [Creating a non-recurrent entry]
@@ -130,9 +130,9 @@ void snippets()
//! [Retrieving any entry (not occurrence) which matches a search criteria]
//! [Creating an exception to a particular recurrent event]
- // the following line should be made simpler via QOIM::itemInstances(item, startDateTime, endDateTime, count)...
+ // the following line should be made simpler via QOIM::itemOccurrences(item, startDateTime, endDateTime, count)...
/* FIXME: correct the example
- QOrganizerEventOccurrence nextMarshmallowMeeting = QOrganizerEventOccurrence(defaultManager.itemInstances().value(0)); // should use dfil.
+ QOrganizerEventOccurrence nextMarshmallowMeeting = QOrganizerEventOccurrence(defaultManager.itemOccurrences().value(0)); // should use dfil.
nextMarshmallowMeeting.setStartDateTime(QDateTime::fromString("13.05.2010 18:00:00", "dd.MM.yy hh:mm:ss"));
nextMarshmallowMeeting.setEndDateTime(QDateTime::fromString("13.05.2010 20:00:00", "dd.MM.yy hh:mm:ss"));
nextMarshmallowMeeting.addComment("The next meeting will go for an hour longer (starting one "\