GData.GDWhen¶
- Subclasses:
None
Methods¶
- Inherited:
GData.Parsable (5), GObject.Object (37), GData.Comparable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GData.Parsable (9), GObject.Object (7), GData.Comparable (1)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The title of a person within the when. |
||
r/w |
A programmatic value that identifies the type of when. |
||
r/w |
The name of the when. |
||
r/w |
A simple string value used to name this when. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GData.GDWhen(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.GDWhenstructure are private and should never be accessed directly.New in version 0.2.0.
- classmethod new(start_time, end_time, is_date)¶
- Parameters:
- Returns:
a new
GData.GDWhen, orNone; unref withGObject.Object.unref()- Return type:
Creates a new
GData.GDWhen. More information is available in the GData specification.New in version 0.2.0.
- add_reminder(reminder)¶
- Parameters:
reminder (
GData.GDReminder) – aGData.GDReminderto add
Adds a reminder to the
GData.GDWhen's list of reminders and increments its reference count.Duplicate reminders will not be added to the list.
New in version 0.7.0.
- get_end_time()¶
- Returns:
the UNIX timestamp for the end time of the event, or
-1
- Return type:
Gets the
GData.GDWhen:end-timeproperty.If the end time is unset, -1 will be returned.
New in version 0.4.0.
- get_reminders()¶
- Returns:
a
GLib.ListofGData.GDReminders, orNone- Return type:
Returns a list of the
GData.GDReminderswhich are associated with thisGData.GDWhen.New in version 0.4.0.
- get_start_time()¶
- Returns:
the UNIX timestamp for the start time of the event
- Return type:
Gets the
GData.GDWhen:start-timeproperty.New in version 0.4.0.
- get_value_string()¶
-
Gets the
GData.GDWhen:value-stringproperty.New in version 0.4.0.
- is_date()¶
- Returns:
TrueifGData.GDWhen:start-timeandGData.GDWhen:end-timeare dates rather than times,Falseotherwise- Return type:
Gets the
GData.GDWhen:is-dateproperty.New in version 0.4.0.
- set_end_time(end_time)¶
- Parameters:
end_time (
int) – the new end time, or -1
Sets the
GData.GDWhen:end-timeproperty to end_time.Set end_time to -1 to unset the property.
New in version 0.4.0.
- set_is_date(is_date)¶
- Parameters:
is_date (
bool) –TrueifGData.GDWhen:start-timeandGData.GDWhen:end-timeshould be dates rather than times,Falseotherwise
Sets the
GData.GDWhen:is-dateproperty to is_date.New in version 0.4.0.
- set_start_time(start_time)¶
- Parameters:
start_time (
int) – the new start time
Sets the
GData.GDWhen:start-timeproperty to start_time.New in version 0.4.0.
- set_value_string(value_string)¶
-
Sets the
GData.GDWhen:value-stringproperty to value_string.Set value_string to
Noneto unset the property.New in version 0.4.0.
Property Details¶
- GData.GDWhen.props.end_time¶
-
The title of a person within the when.
For more information, see the
New in version 0.4.0.
- GData.GDWhen.props.is_date¶
-
A programmatic value that identifies the type of when.
For more information, see the
New in version 0.4.0.
- GData.GDWhen.props.start_time¶
-
The name of the when.
For more information, see the
New in version 0.4.0.
- GData.GDWhen.props.value_string¶
-
A simple string value used to name this when. It allows UIs to display a label such as “Work”, “Volunteer”, “Professional Society”, etc.
For more information, see the
New in version 0.4.0.