blob: 532fa2a0e4d69bef9fab162c2511c94f913f70f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/* Evolution calendar interface
*
* Copyright (C) 2000 Eskil Heyn Olsen
* Copyright (C) 2000 Ximian, Inc.
* Copyright (C) 2000 Ximian, Inc.
*
* Authors: Eskil Heyn Olsen <deity@eskil.dk>
* Federico Mena-Quintero <federico@ximian.com>
*/
#ifndef _EVOLUTION_CALENDAR_IDL_
#define _EVOLUTION_CALENDAR_IDL_
#include <Bonobo.idl>
module GNOME {
module Evolution {
module Calendar {
/* A unique identifier for a calendar component */
typedef string CalObjUID;
/* Factory to centralize calendar component editor dialogs */
interface CompEditorFactory : Bonobo::Unknown {
exception InvalidURI {};
exception BackendContactError {};
exception UnsupportedType {};
typedef long CompEditorMode;
const CompEditorMode EDITOR_MODE_EVENT = 1 << 0;
const CompEditorMode EDITOR_MODE_ALLDAY_EVENT = 1 << 1;
const CompEditorMode EDITOR_MODE_MEETING = 1 << 2;
const CompEditorMode EDITOR_MODE_TODO = 1 << 3;
/* Loads a calendar and opens an editor for the specified object */
/* FIXME Its nasty to use CompEditorMode to pass event/todo source type
but it saves adding yet another corba type - only MODE_EVENT or
MODE_TODO should be passed here */
void editExisting (in string uri, in CalObjUID uid, in CompEditorMode mode)
raises (InvalidURI, BackendContactError);
/* Loads a calendar and creates a new component of the specified type */
void editNew (in string uri, in CompEditorMode mode)
raises (InvalidURI, BackendContactError, UnsupportedType);
};
interface AlarmNotify : Bonobo::Unknown {
};
};
};
};
#endif
|