CalenLauncher Class Reference

class CalenLauncher

CalenLauncher allows external applications to start the S60 Calendar application in any of its views.

Available launch options are:
  • Launch the Calendar and edit a new entry

  • Launch the Calendar and view an existing entry

  • Launch the Calendar and view an instance of a repeating entry

  • Launch the Calendar and edit an existing entry

  • Launch the Calendar and edit an instance of a repeating entry

  • Launch the Calendar to the default view

  • Launch the Calendar to the specified view

  • Launch the Calendar to the specified view at a given time and date

 // To create a new meeting
 CalenLauncher::NewEntryL( CCalEntry::EAppt );

 // To create a new todo
 CalenLauncher::NewEntryL( CCalEntry::ETodo );

 // To launch Calendar in the month view
 CalenLauncher::LaunchL( KCalMonthViewUid );
Public Member Functions
IMPORT_C voidEditEntryL(const TCalLocalUid &, TInt)
IMPORT_C voidEditEntryL(const TCalLocalUid &, const TCalTime &, TInt)
IMPORT_C voidLaunchL(const TUid &, TInt)
IMPORT_C voidLaunchL(const TUid &, const TCalTime &, TInt)
IMPORT_C voidNewEntryL(const CCalEntry::TType &, TInt)
IMPORT_C voidViewEntryL(const TCalLocalUid &, TInt)
IMPORT_C voidViewEntryL(const TCalLocalUid &, const TCalTime &, TInt)
IMPORT_C voidViewEntryL(const TCalLocalUid &, const TCalTime &, const TDesC &, TInt)
Public Member Enumerations
enumanonymous { EAlarmViewer = 0x01, EAlarmViewerNoSnooze = 0x02 }

Member Functions Documentation

EditEntryL(const TCalLocalUid &, TInt)

IMPORT_C voidEditEntryL(const TCalLocalUid &aUid,
TIntaFlags = 0
)[static]

Opens a Calendar entry directly in the entry editor. If the entry is a repeating entry then entire series will be opened. Calendar will be closed when the editor is closed, even if it was already open. Any open dialogs (eg entry viewer or editor) will be closed. Opens a Calendar entry directly in the entry editor. If the entry is a repeating entry then entire series will be opened. Calendar will be closed when the editor is closed. Any open dialogs (eg entry viewer or editor) will be closed.

Parameters

const TCalLocalUid & aUidLocalUid of the entry to view
TInt aFlags = 0Reserved for future use

EditEntryL(const TCalLocalUid &, const TCalTime &, TInt)

IMPORT_C voidEditEntryL(const TCalLocalUid &aUid,
const TCalTime &aInstanceTime,
TIntaFlags = 0
)[static]

Opens an instance of a repeating Calendar entry directly in the entry editor. Calendar will be closed when the editor is closed, even if it was already open. Any open dialogs (eg entry viewer or editor) will be closed. Opens an instance of a repeating Calendar entry directly in the entry editor. Calendar will be closed when the editor is closed. Any open dialogs (eg entry viewer or editor) will be closed.

Parameters

const TCalLocalUid & aUidLocalUid of the entry to view
const TCalTime & aInstanceTimeInstance time of the repeated entry
TInt aFlags = 0Reserved for future use

LaunchL(const TUid &, TInt)

IMPORT_C voidLaunchL(const TUid &aViewUid,
TIntaFlags = 0
)[static]

Launches Calendar in the specified view. If Calendar is already running it will be brought to the foreground in the specified view. Any open dialogs (eg entry viewer or editor) will be closed. Launches Calendar in the specified view. If Calendar is already running it will be brought to the foreground in the specified view. Any open dialogs (eg entry viewer or editor) will be closed.

Parameters

const TUid & aViewUidUID of the Calendar view to use.
TInt aFlags = 0Reserved for future use

LaunchL(const TUid &, const TCalTime &, TInt)

IMPORT_C voidLaunchL(const TUid &aViewUid,
const TCalTime &aFocusTime,
TIntaFlags = 0
)[static]

Launches Calendar in the specified view, focused to the specified time If Calendar is already running it will be brought to the foreground in the specified view. Any open dialogs (eg entry viewer or editor) will be closed. Launches Calendar in the specified view, focused to the specified time If Calendar is already running it will be brought to the foreground in the specified view. Any open dialogs (eg entry viewer or editor) will be closed.

Parameters

const TUid & aViewUidUID of the Calendar view to use.
const TCalTime & aFocusTimeInitial focus time
TInt aFlags = 0Reserved for future use

NewEntryL(const CCalEntry::TType &, TInt)

IMPORT_C voidNewEntryL(const CCalEntry::TType &aEntryType,
TIntaFlags = 0
)[static]

Opens Calendar directly to the new entry editor. Calendar will be closed when the editor is closed, even if it was already open. Any open dialogs (eg entry viewer or editor) will be closed. Opens Calendar directly to the new entry editor. Calendar will be closed when the editor is closed. Any open dialogs (eg entry viewer or editor) will be closed.

Parameters

const CCalEntry::TType & aEntryTypeType of entry editor to open
TInt aFlags = 0Reserved for future use

ViewEntryL(const TCalLocalUid &, TInt)

IMPORT_C voidViewEntryL(const TCalLocalUid &aUid,
TIntaFlags = 0
)[static]

Opens a Calendar entry directly in the entry viewer. If the entry is a repeating entry then entire series will be opened. The entry editor may be launched from the entry viewer. Calendar will be closed when the editor is closed, even if it was already open. Any open dialogs (eg entry viewer or editor) will be closed. Opens a Calendar entry directly in the entry viewer. If the entry is a repeating entry then entire series will be opened. The entry editor may be launched from the entry viewer. Calendar will be closed when the viewer is closed. Any open dialogs (eg entry viewer or editor) will be closed.

Parameters

const TCalLocalUid & aUidLocalUid of the entry to view
TInt aFlags = 0Reserved for future use

ViewEntryL(const TCalLocalUid &, const TCalTime &, TInt)

IMPORT_C voidViewEntryL(const TCalLocalUid &aUid,
const TCalTime &aInstanceTime,
TIntaFlags = 0
)[static]

Opens an instance of a repeating Calendar entry directly in the entry viewer. The entry editor may be launched from the entry viewer. Calendar will be closed when the editor is closed, even if it was already open. Any open dialogs (eg entry viewer or editor) will be closed. Opens an instance of a repeating Calendar entry directly in the entry viewer. The entry editor may be launched from the entry viewer. Calendar will be closed when the viewer is closed. Any open dialogs (eg entry viewer or editor) will be closed.

Parameters

const TCalLocalUid & aUidLocalUid of the entry to view
const TCalTime & aInstanceTimeInstance time of the repeated entry
TInt aFlags = 0Reserved for future use

ViewEntryL(const TCalLocalUid &, const TCalTime &, const TDesC &, TInt)

IMPORT_C voidViewEntryL(const TCalLocalUid &aUid,
const TCalTime &aInstanceTime,
const TDesC &aCalFileName,
TIntaFlags = 0
)[static]

Opens an instance of a repeating Calendar entry directly in the entry viewer. The entry editor may be launched from the entry viewer. Calendar will be closed when the editor is closed, even if it was already open. Any open dialogs (eg entry viewer or editor) will be closed. Opens an instance of a repeating Calendar entry directly in the entry viewer. The entry editor may be launched from the entry viewer. Calendar will be closed when the viewer is closed. Any open dialogs (eg entry viewer or editor) will be closed.

Parameters

const TCalLocalUid & aUidLocalUid of the entry to view
const TCalTime & aInstanceTimeInstance time of the repeated entry
const TDesC & aCalFileNameCalendar DB name of the repeated entry.
TInt aFlags = 0Reserved for future use

Member Enumerations Documentation

Enum anonymous

Enumerators

EAlarmViewer = 0x01
EAlarmViewerNoSnooze = 0x02