diff options
Diffstat (limited to 'kresources/exchange')
-rw-r--r-- | kresources/exchange/exchange.desktop | 1 | ||||
-rw-r--r-- | kresources/exchange/exchange_deprecated.desktop | 1 | ||||
-rw-r--r-- | kresources/exchange/resourceexchange.cpp | 36 | ||||
-rw-r--r-- | kresources/exchange/resourceexchange.h | 10 |
4 files changed, 36 insertions, 12 deletions
diff --git a/kresources/exchange/exchange.desktop b/kresources/exchange/exchange.desktop index 9342e3baa..5bfe8a1ed 100644 --- a/kresources/exchange/exchange.desktop +++ b/kresources/exchange/exchange.desktop @@ -26,7 +26,6 @@ Name[hu]=Exchange 2000-kiszolgáló Name[is]=Exchange 2000 þjónn Name[it]=Server Exchange 2000 Name[ja]=Exchange 2000 サーバ -Name[ka]=სერვერი Exchange 2000 Name[kk]=MS Exchange 2000 сервері Name[km]=ម៉ាស៊ីនបម្រើ Exchange ២០០០ Name[lt]=Exchange 2000 serveris diff --git a/kresources/exchange/exchange_deprecated.desktop b/kresources/exchange/exchange_deprecated.desktop index 70ffbc63f..eba22eed2 100644 --- a/kresources/exchange/exchange_deprecated.desktop +++ b/kresources/exchange/exchange_deprecated.desktop @@ -21,7 +21,6 @@ Name[hu]=Exchange 2000-kiszolgáló (elavult) Name[is]=Exchange 2000 þjónn (úrelt) Name[it]=Server Exchange 2000 (deprecato) Name[ja]=Exchange 2000 サーバ (廃止予定) -Name[ka]=სერვერი Exchange 2000 (მოძველებული) Name[kk]=MS Exchange 2000 сервері (ескірген) Name[km]=ម៉ាស៊ីនបម្រើ Exchange ២០០០ (មិនសូវល្អ) Name[lt]=Exchange 2000 serveris (deprecated) diff --git a/kresources/exchange/resourceexchange.cpp b/kresources/exchange/resourceexchange.cpp index 8e877f9b0..82c0ab07d 100644 --- a/kresources/exchange/resourceexchange.cpp +++ b/kresources/exchange/resourceexchange.cpp @@ -91,6 +91,7 @@ ResourceExchange::ResourceExchange( const KConfig *config ) mCachedSeconds = config->readNumEntry( "ExchangeCacheTimeout", 600 ); mAutoMailbox = config->readBoolEntry( "ExchangeAutoMailbox", true ); } else { + setResourceName( i18n( "Exchange Server" ) ); mAccount = new ExchangeAccount( "", "", "", "" ); mCachedSeconds = 600; } @@ -248,19 +249,26 @@ void ResourceExchange::slotMonitorError( int errorCode, const TQString& moreInfo } -bool ResourceExchange::addEvent(Event *anEvent) +bool ResourceExchange::addEvent( Event *event ) { + return addEvent( event, TQString() ); +} + +bool ResourceExchange::addEvent( Event *event, const TQString &subresource ) +{ + Q_UNUSED( subresource ); //subresources are not supported + if( !mCache ) return false; kdDebug() << "ResourceExchange::addEvent" << endl; // FIXME: first check of upload finished successfully, only then // add to cache - mCache->addEvent( anEvent ); + mCache->addEvent( event ); - uploadEvent( anEvent ); -// insertEvent(anEvent); + uploadEvent( event ); +// insertEvent( event ); - anEvent->registerObserver( this ); + event->registerObserver( this ); // setModified( true ); return true; @@ -341,8 +349,14 @@ void ResourceExchange::unsubscribeEvents( const TQDate &/*start*/, const TQDate kdDebug() << "ResourceExchange::unsubscribeEvents()" << endl; } -bool ResourceExchange::addTodo(Todo */*todo*/) +bool ResourceExchange::addTodo( Todo *todo ) +{ + return addTodo( todo, TQString() ); +} + +bool ResourceExchange::addTodo( Todo */*todo*/, const TQString &subresource ) { + Q_UNUSED( subresource ); //subresources are not supported // This resource doesn't handle todos yet! return false; /* if( !mCache) @@ -356,6 +370,7 @@ bool ResourceExchange::addTodo(Todo */*todo*/) return true;*/ } + bool ResourceExchange::deleteTodo(Todo */*todo*/) { // We don't handle todos yet @@ -530,8 +545,15 @@ Event::List ResourceExchange::rawEvents( EventSortField sortField, SortDirection return mCache->rawEvents( sortField, sortDirection ); } -bool ResourceExchange::addJournal(Journal */*journal*/) +bool ResourceExchange::addJournal( Journal *journal ) +{ + return addJournal( journal, TQString() ); +} + +bool ResourceExchange::addJournal( Journal */*journal*/, const TQString &subresource ) { + Q_UNUSED( subresource ); //subresources are not supported + // This resource doesn't handle journals yet return false; /* kdDebug(5800) << "Adding Journal on " << journal->dtStart().toString() << endl; diff --git a/kresources/exchange/resourceexchange.h b/kresources/exchange/resourceexchange.h index d3492cf00..7328a27b0 100644 --- a/kresources/exchange/resourceexchange.h +++ b/kresources/exchange/resourceexchange.h @@ -83,7 +83,9 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer // void close(); /** Add Event to calendar. */ - bool addEvent(Event *anEvent); + KDE_DEPRECATED bool addEvent( Event *event ); + bool addEvent( Event *event, const TQString &subresource ); + /** deletes an event from this calendar. */ bool deleteEvent(Event *); @@ -118,7 +120,8 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer /** Add a todo to the todolist. */ - bool addTodo( Todo *todo ); + KDE_DEPRECATED bool addTodo( Todo *todo ); + bool addTodo( Todo *todo, const TQString &subresource ); /** Remove a todo from the todolist. */ @@ -138,7 +141,8 @@ class ResourceExchange : public ResourceCalendar, public IncidenceBase::Observer Todo::List rawTodosForDate( const TQDate &date ); /** Add a Journal entry to calendar */ - virtual bool addJournal(Journal *); + KDE_DEPRECATED bool addJournal( Journal *journal ); + bool addJournal( Journal *journal, const TQString &subresource ); /** deletes an event from this calendar. */ virtual bool deleteJournal(Journal *); /** Return Journals for given date */ |