57 kdDebug() <<
"konsolekalendarchange.cpp::changeEvent()" << endl;
65 cout << i18n(
"Change Event <Dry Run>:" ).local8Bit().data()
69 cout << i18n(
"To Event <Dry Run>:" ).local8Bit().data()
73 kdDebug() <<
"konsolekalendarchange.cpp:changeEvent() : "
74 << m_variables->
getUID().local8Bit()
78 cout << i18n(
"Change Event <Verbose>:" ).local8Bit().data()
82 cout << i18n(
"To Event <Dry Run>:" ).local8Bit().data()
98 event->setSummary( m_variables->
getSummary() );
109 if ( m_variables->
getCalendar()->addEvent( event ) ) {
110 cout << i18n(
"Success: \"%1\" changed" )
111 .arg( event->summary() ).local8Bit().data()
117 cout << i18n(
"Failure: \"%1\" not changed" )
118 .arg( event->summary() ).local8Bit().data()
124 kdDebug() <<
"konsolekalendarchange.cpp::changeEvent() | Done " << endl;
128void KonsoleKalendarChange::printSpecs( Event *event )
130 cout << i18n(
" UID: %1" ).
131 arg( event->uid() ).local8Bit().data()
134 cout << i18n(
" What: %1" ).
135 arg( event->summary() ).local8Bit().data()
138 cout << i18n(
" Begin: %1" ).
139 arg( event->dtStart().toString( TQt::TextDate ) ).local8Bit().data()
142 cout << i18n(
" End: %1" ).
143 arg( event->dtEnd().toString( TQt::TextDate ) ).local8Bit().data()
146 cout << i18n(
" Desc: %1" ).
147 arg( event->description() ).local8Bit().data()
150 cout << i18n(
" Location: %1" ).
151 arg( event->location() ).local8Bit().data()
155void KonsoleKalendarChange::printSpecs()
157 cout << i18n(
" UID: %1" ).
158 arg( m_variables->
getUID() ).local8Bit().data()
161 cout << i18n(
" What: %1" ).
162 arg( m_variables->
getSummary() ).local8Bit().data()
165 cout << i18n(
" Begin: %1" ).
166 arg( m_variables->
getStartDateTime().toString( TQt::TextDate ) ).local8Bit().data()
169 cout << i18n(
" End: %1" ).
170 arg( m_variables->
getEndDateTime().toString( TQt::TextDate ) ).local8Bit().data()
173 cout << i18n(
" Desc: %1" ).
177 cout << i18n(
" Location: %1" ).
178 arg( m_variables->
getLocation() ).local8Bit().data()
~KonsoleKalendarChange()
Destructor.
bool changeEvent()
Modify the Event.
This class provides all the variables for the program.
bool getFloating()
Return if Event is floating.
bool isStartDateTime()
Is there start date?
bool isEndDateTime()
Is there end date?
bool isDryRun()
Is this program only in testing mode?
TQString getDescription()
Return description.
bool isDescription()
Is there an event description?
bool isVerbose()
Should program be more verbose?
TQDateTime getStartDateTime()
Get start date.
bool isLocation()
Is there event location information available?
TQString getLocation()
Return location information.
bool isSummary()
Is there an event summary?
TQDateTime getEndDateTime()
Get end date.
TQString getSummary()
Get summary.
TQString getUID()
Get UID, the unique tag for VCard entry.
CalendarResources * getCalendar()
Get global calendar resources.
Provides the KonsoleKalendarChange class definition.