You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
529 lines
13 KiB
529 lines
13 KiB
15 years ago
|
/*
|
||
|
This file is part of libkcal.
|
||
|
|
||
|
Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
|
||
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Library General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public License
|
||
|
along with this library; see the file COPYING.LIB. If not, write to
|
||
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
|
*/
|
||
|
|
||
|
#include <typeinfo>
|
||
|
#include <stdlib.h>
|
||
|
|
||
15 years ago
|
#include <tqdatetime.h>
|
||
|
#include <tqstring.h>
|
||
|
#include <tqptrlist.h>
|
||
15 years ago
|
|
||
12 years ago
|
#include <tdelocale.h>
|
||
15 years ago
|
#include <kdebug.h>
|
||
|
#include <kurl.h>
|
||
12 years ago
|
#include <tdeio/job.h>
|
||
15 years ago
|
#include <kstandarddirs.h>
|
||
|
|
||
12 years ago
|
#include <tdeabc/stdaddressbook.h>
|
||
|
#include <tdeabc/locknull.h>
|
||
15 years ago
|
|
||
|
#include "libkcal/vcaldrag.h"
|
||
|
#include "libkcal/vcalformat.h"
|
||
|
#include "libkcal/icalformat.h"
|
||
|
#include "libkcal/exceptions.h"
|
||
|
#include "libkcal/incidence.h"
|
||
|
#include "libkcal/event.h"
|
||
|
#include "libkcal/todo.h"
|
||
|
#include "libkcal/journal.h"
|
||
|
#include "libkcal/filestorage.h"
|
||
|
#include "libkcal/alarm.h"
|
||
|
|
||
14 years ago
|
#include <libemailfunctions/email.h>
|
||
|
|
||
12 years ago
|
#include <tderesources/configwidget.h>
|
||
15 years ago
|
|
||
11 years ago
|
#include "resourcetdeabcconfig.h"
|
||
15 years ago
|
|
||
11 years ago
|
#include "resourcetdeabc.h"
|
||
15 years ago
|
|
||
|
using namespace KCal;
|
||
|
|
||
|
extern "C"
|
||
|
{
|
||
11 years ago
|
void *init_kcal_tdeabc()
|
||
15 years ago
|
{
|
||
12 years ago
|
TDEGlobal::locale()->insertCatalogue( "kres_birthday" );
|
||
|
TDEGlobal::locale()->insertCatalogue( "libkcal" );
|
||
12 years ago
|
return new KRES::PluginFactory<ResourceTDEABC,ResourceTDEABCConfig>();
|
||
15 years ago
|
}
|
||
|
}
|
||
|
|
||
12 years ago
|
ResourceTDEABC::ResourceTDEABC( const TDEConfig* config )
|
||
13 years ago
|
: ResourceCalendar( config ), mCalendar( TQString::fromLatin1( "UTC" ) ),
|
||
15 years ago
|
mAlarmDays( 0 ), mAlarm( true ), mUseCategories( false )
|
||
|
{
|
||
|
if ( config ) {
|
||
|
readConfig( config );
|
||
14 years ago
|
} else {
|
||
|
setResourceName( i18n( "Birthdays" ) );
|
||
15 years ago
|
}
|
||
|
|
||
|
init();
|
||
|
}
|
||
|
|
||
12 years ago
|
ResourceTDEABC::ResourceTDEABC()
|
||
13 years ago
|
: ResourceCalendar( 0 ), mCalendar( TQString::fromLatin1( "UTC" ) ),
|
||
15 years ago
|
mAlarmDays( 0 ), mAlarm( true ), mUseCategories( false )
|
||
|
{
|
||
|
init();
|
||
|
}
|
||
|
|
||
12 years ago
|
ResourceTDEABC::~ResourceTDEABC()
|
||
15 years ago
|
{
|
||
|
delete mLock;
|
||
|
}
|
||
|
|
||
12 years ago
|
void ResourceTDEABC::init()
|
||
15 years ago
|
{
|
||
|
setType( "birthdays" );
|
||
|
|
||
|
setReadOnly( true );
|
||
|
|
||
12 years ago
|
mLock = new TDEABC::LockNull( false );
|
||
15 years ago
|
|
||
|
mAddressbook = 0;
|
||
|
}
|
||
|
|
||
12 years ago
|
void ResourceTDEABC::readConfig( const TDEConfig *config )
|
||
15 years ago
|
{
|
||
|
mAlarmDays = config->readNumEntry( "AlarmDays", 0 );
|
||
|
mAlarm = config->readBoolEntry( "Alarm", true );
|
||
|
mCategories = config->readListEntry( "Categories" );
|
||
|
mUseCategories = config->readBoolEntry( "UseCategories", false );
|
||
|
}
|
||
|
|
||
12 years ago
|
void ResourceTDEABC::writeConfig( TDEConfig *config )
|
||
15 years ago
|
{
|
||
|
ResourceCalendar::writeConfig( config );
|
||
|
config->writeEntry( "AlarmDays", mAlarmDays );
|
||
|
config->writeEntry( "Alarm", mAlarm );
|
||
|
config->writeEntry( "Categories", mCategories );
|
||
|
config->writeEntry( "UseCategories", mUseCategories );
|
||
|
}
|
||
|
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::doOpen()
|
||
15 years ago
|
{
|
||
12 years ago
|
kdDebug(5800) << "ResourceTDEABC::doOpen()" << endl;
|
||
15 years ago
|
|
||
12 years ago
|
mAddressbook = TDEABC::StdAddressBook::self( true );
|
||
15 years ago
|
connect( mAddressbook, TQT_SIGNAL(addressBookChanged(AddressBook*)), TQT_SLOT( reload() ) );
|
||
15 years ago
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::doLoad()
|
||
15 years ago
|
{
|
||
12 years ago
|
kdDebug(5800) << "ResourceTDEABC::load()" << endl;
|
||
15 years ago
|
|
||
|
mCalendar.close();
|
||
|
|
||
11 years ago
|
// import from tdeabc
|
||
15 years ago
|
TQString summary;
|
||
|
TQStringList::ConstIterator strIt;
|
||
|
const TQStringList::ConstIterator endStrIt = mCategories.end();
|
||
12 years ago
|
TDEABC::Addressee::List anniversaries;
|
||
|
TDEABC::Addressee::List::Iterator addrIt;
|
||
15 years ago
|
|
||
12 years ago
|
TDEABC::AddressBook::Iterator it;
|
||
|
const TDEABC::AddressBook::Iterator endIt = mAddressbook->end();
|
||
15 years ago
|
for ( it = mAddressbook->begin(); it != endIt; ++it ) {
|
||
|
|
||
|
if ( mUseCategories ) {
|
||
|
bool hasCategory = false;
|
||
15 years ago
|
TQStringList categories = (*it).categories();
|
||
15 years ago
|
for ( strIt = mCategories.begin(); strIt != endStrIt; ++strIt )
|
||
14 years ago
|
if ( categories.contains( *strIt ) ) {
|
||
15 years ago
|
hasCategory = true;
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
if ( !hasCategory )
|
||
|
continue;
|
||
|
}
|
||
|
|
||
15 years ago
|
TQDate birthdate = (*it).birthday().date();
|
||
|
TQString name_1, email_1, uid_1;
|
||
15 years ago
|
if ( birthdate.isValid() ) {
|
||
14 years ago
|
kdDebug(5800) << "found a birthday " << TQString(birthdate.toString()) << endl;
|
||
15 years ago
|
|
||
|
name_1 = (*it).nickName();
|
||
|
email_1 = (*it).fullEmail();
|
||
|
uid_1 = (*it).uid();
|
||
|
if (name_1.isEmpty()) name_1 = (*it).realName();
|
||
13 years ago
|
summary = i18n("%1's birthday").arg( name_1 );
|
||
15 years ago
|
|
||
|
|
||
|
Event *ev = new Event();
|
||
|
ev->setUid( uid_1+"_KABC_Birthday");
|
||
|
|
||
|
ev->setDtStart(birthdate);
|
||
|
ev->setDtEnd(birthdate);
|
||
|
ev->setHasEndDate(true);
|
||
|
ev->setFloats(true);
|
||
|
ev->setTransparency( Event::Transparent );
|
||
|
|
||
|
ev->setCustomProperty("KABC", "BIRTHDAY", "YES");
|
||
|
ev->setCustomProperty("KABC", "UID-1", uid_1 );
|
||
|
ev->setCustomProperty("KABC", "NAME-1", name_1 );
|
||
|
ev->setCustomProperty("KABC", "EMAIL-1", email_1 );
|
||
12 years ago
|
kdDebug(5800) << "ResourceTDEABC::doLoad: uid:" << uid_1 << " name: " << name_1
|
||
15 years ago
|
<< " email: " << email_1 << endl;
|
||
|
ev->setSummary(summary);
|
||
|
|
||
|
// Set the recurrence
|
||
|
Recurrence *vRecurrence = ev->recurrence();
|
||
|
vRecurrence->setStartDate( birthdate );
|
||
|
vRecurrence->setYearly( 1 );
|
||
|
if ( birthdate.month()==2 && birthdate.day()==29 ) {
|
||
|
vRecurrence->addYearlyDay( 60 );
|
||
|
}
|
||
|
|
||
|
ev->clearAlarms();
|
||
|
|
||
|
if ( mAlarm ) {
|
||
|
// Set the alarm
|
||
|
Alarm* vAlarm = ev->newAlarm();
|
||
|
vAlarm->setText(summary);
|
||
|
vAlarm->setTime(birthdate);
|
||
|
// 24 hours before. duration is in seconds.
|
||
|
vAlarm->setStartOffset( -86400 * mAlarmDays );
|
||
|
vAlarm->setEnabled(true);
|
||
|
}
|
||
|
|
||
|
// insert category
|
||
|
ev->setCategories(i18n("Birthday"));
|
||
|
|
||
|
ev->setReadOnly( true );
|
||
|
mCalendar.addEvent(ev);
|
||
14 years ago
|
kdDebug(5800) << "imported " << TQString(birthdate.toString()) << endl;
|
||
15 years ago
|
}
|
||
|
|
||
15 years ago
|
TQString anniversary_string = (*it).custom( "KADDRESSBOOK", "X-Anniversary" );
|
||
15 years ago
|
if (anniversary_string.isEmpty() )
|
||
|
continue;
|
||
14 years ago
|
TQDateTime anniversary = TQDate::fromString( anniversary_string, Qt::ISODate );
|
||
15 years ago
|
if ( !anniversary.isValid() )
|
||
|
continue;
|
||
|
|
||
15 years ago
|
TQString name = (*it).custom( "KADDRESSBOOK", "X-SpousesName" );
|
||
15 years ago
|
if ( name.isEmpty() )
|
||
|
anniversaries.append( *it );
|
||
|
else {
|
||
|
bool found = false;
|
||
|
for ( addrIt = anniversaries.begin(); addrIt != anniversaries.end(); ++addrIt ) {
|
||
|
if ( name == (*addrIt).realName() ) {
|
||
14 years ago
|
TQDate spouseAnniversary =
|
||
14 years ago
|
TQDate::fromString( (*addrIt).custom( "KADDRESSBOOK", "X-Anniversary" ), Qt::ISODate );
|
||
|
if ( anniversary == TQDateTime(spouseAnniversary) ) {
|
||
15 years ago
|
found = true;
|
||
|
break;
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if ( !found )
|
||
|
anniversaries.append( *it );
|
||
|
}
|
||
|
}
|
||
|
|
||
|
for ( addrIt = anniversaries.begin(); addrIt != anniversaries.end(); ++addrIt ) {
|
||
14 years ago
|
TQDate anniversary = TQDate::fromString( (*addrIt).custom( "KADDRESSBOOK", "X-Anniversary" ), Qt::ISODate );
|
||
|
kdDebug(5800) << "found a anniversary " << TQString(anniversary.toString()) << endl;
|
||
15 years ago
|
TQString name;
|
||
|
TQString name_1 = (*addrIt).nickName();
|
||
|
TQString uid_1 = (*addrIt).uid();
|
||
|
TQString email_1 = (*addrIt).fullEmail();
|
||
15 years ago
|
if ( name_1.isEmpty() )
|
||
|
name_1 = (*addrIt).realName();
|
||
|
|
||
|
|
||
15 years ago
|
TQString spouseName = (*addrIt).custom( "KADDRESSBOOK", "X-SpousesName" );
|
||
|
TQString name_2,email_2,uid_2;
|
||
15 years ago
|
if ( !spouseName.isEmpty() ) {
|
||
14 years ago
|
TQString tname, temail;
|
||
|
KPIM::getNameAndMail( spouseName, tname, temail );
|
||
|
tname = KPIM::quoteNameIfNecessary( tname );
|
||
|
if ( ( tname[0] == '"' ) && ( tname[tname.length() - 1] == '"' ) ) {
|
||
|
tname.remove( 0, 1 );
|
||
|
tname.truncate( tname.length() - 1 );
|
||
|
}
|
||
12 years ago
|
TDEABC::Addressee spouse;
|
||
14 years ago
|
spouse.setNameFromString( tname );
|
||
|
name_2 = spouse.nickName();
|
||
15 years ago
|
uid_2 = spouse.uid();
|
||
|
email_2 = spouse.fullEmail();
|
||
14 years ago
|
if ( name_2.isEmpty() ) {
|
||
|
name_2 = spouse.realName();
|
||
|
}
|
||
|
summary = i18n("insert names of both spouses",
|
||
13 years ago
|
"%1's & %2's anniversary").arg( name_1 ).arg( name_2 );
|
||
15 years ago
|
} else {
|
||
14 years ago
|
summary = i18n("only one spouse in addressbook, insert the name",
|
||
13 years ago
|
"%1's anniversary").arg( name_1 );
|
||
15 years ago
|
}
|
||
|
|
||
|
Event *ev = new Event();
|
||
14 years ago
|
ev->setUid( uid_1+"_KABC_Anniversary" );
|
||
15 years ago
|
|
||
|
ev->setDtStart(anniversary);
|
||
|
ev->setDtEnd(anniversary);
|
||
|
ev->setHasEndDate(true);
|
||
|
ev->setFloats(true);
|
||
|
|
||
|
ev->setSummary(summary);
|
||
|
|
||
|
ev->setCustomProperty( "KABC", "BIRTHDAY", "YES" );
|
||
|
|
||
|
ev->setCustomProperty( "KABC", "UID-1", uid_1 );
|
||
|
ev->setCustomProperty( "KABC", "NAME-1", name_1 );
|
||
|
ev->setCustomProperty( "KABC", "EMAIL-1", email_1 );
|
||
|
ev->setCustomProperty( "KABC", "ANNIVERSARY", "YES" );
|
||
|
if ( !spouseName.isEmpty() ) {
|
||
|
ev->setCustomProperty("KABC", "UID-2", uid_2 );
|
||
|
ev->setCustomProperty("KABC", "NAME-2", spouseName );
|
||
|
ev->setCustomProperty("KABC", "EMAIL-2", email_2 );
|
||
|
}
|
||
|
// Set the recurrence
|
||
|
Recurrence *vRecurrence = ev->recurrence();
|
||
|
vRecurrence->setStartDate( anniversary );
|
||
|
vRecurrence->setYearly( 1 );
|
||
|
if ( anniversary.month()==2 && anniversary.day()==29 ) {
|
||
|
vRecurrence->addYearlyDay( 60 );
|
||
|
}
|
||
|
|
||
|
ev->clearAlarms();
|
||
|
|
||
|
if ( mAlarm ) {
|
||
|
// Set the alarm
|
||
|
Alarm* vAlarm = ev->newAlarm();
|
||
|
vAlarm->setText(summary);
|
||
|
vAlarm->setTime(anniversary);
|
||
|
// 24 hours before. duration is in seconds.
|
||
|
vAlarm->setStartOffset( -86400 * mAlarmDays );
|
||
|
vAlarm->setEnabled(true);
|
||
|
}
|
||
|
|
||
|
// insert category
|
||
|
ev->setCategories(i18n("Anniversary"));
|
||
|
|
||
|
ev->setReadOnly( true );
|
||
|
mCalendar.addEvent(ev);
|
||
14 years ago
|
kdDebug(5800) << "imported " << TQString(anniversary.toString()) << endl;
|
||
15 years ago
|
}
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
12 years ago
|
void ResourceTDEABC::setAlarm( bool a )
|
||
15 years ago
|
{
|
||
|
mAlarm = a;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::alarm()
|
||
15 years ago
|
{
|
||
|
return mAlarm;
|
||
|
}
|
||
|
|
||
12 years ago
|
void ResourceTDEABC::setAlarmDays( int ad )
|
||
15 years ago
|
{
|
||
|
mAlarmDays = ad;
|
||
|
}
|
||
|
|
||
12 years ago
|
int ResourceTDEABC::alarmDays()
|
||
15 years ago
|
{
|
||
|
return mAlarmDays;
|
||
|
}
|
||
|
|
||
12 years ago
|
void ResourceTDEABC::setCategories( const TQStringList &categories )
|
||
15 years ago
|
{
|
||
|
mCategories = categories;
|
||
|
}
|
||
|
|
||
12 years ago
|
TQStringList ResourceTDEABC::categories() const
|
||
15 years ago
|
{
|
||
|
return mCategories;
|
||
|
}
|
||
|
|
||
12 years ago
|
void ResourceTDEABC::setUseCategories( bool useCategories )
|
||
15 years ago
|
{
|
||
|
mUseCategories = useCategories;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::useCategories() const
|
||
15 years ago
|
{
|
||
|
return mUseCategories;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::doSave()
|
||
15 years ago
|
{
|
||
|
// is always read only!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::isSaving()
|
||
15 years ago
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
12 years ago
|
TDEABC::Lock *ResourceTDEABC::lock()
|
||
15 years ago
|
{
|
||
|
return mLock;
|
||
|
}
|
||
|
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::addEvent( Event * )
|
||
14 years ago
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::addEvent( Event *, const TQString & )
|
||
15 years ago
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::deleteEvent( Event * )
|
||
15 years ago
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
|
||
12 years ago
|
Event *ResourceTDEABC::event( const TQString &uid )
|
||
15 years ago
|
{
|
||
|
return mCalendar.event( uid );
|
||
|
}
|
||
|
|
||
12 years ago
|
Event::List ResourceTDEABC::rawEventsForDate( const TQDate &date,
|
||
15 years ago
|
EventSortField sortField,
|
||
|
SortDirection sortDirection )
|
||
|
{
|
||
|
return mCalendar.rawEventsForDate( date, sortField, sortDirection );
|
||
|
}
|
||
|
|
||
12 years ago
|
Event::List ResourceTDEABC::rawEvents( const TQDate &start, const TQDate &end,
|
||
15 years ago
|
bool inclusive )
|
||
|
{
|
||
|
return mCalendar.rawEvents( start, end, inclusive );
|
||
|
}
|
||
|
|
||
12 years ago
|
Event::List ResourceTDEABC::rawEventsForDate(const TQDateTime &qdt)
|
||
15 years ago
|
{
|
||
|
return mCalendar.rawEventsForDate( qdt.date() );
|
||
|
}
|
||
|
|
||
12 years ago
|
Event::List ResourceTDEABC::rawEvents( EventSortField sortField, SortDirection sortDirection )
|
||
15 years ago
|
{
|
||
|
return mCalendar.rawEvents( sortField, sortDirection );
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::addTodo( Todo * )
|
||
15 years ago
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::addTodo( Todo *, const TQString & )
|
||
14 years ago
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::deleteTodo( Todo * )
|
||
15 years ago
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
|
||
12 years ago
|
Todo::List ResourceTDEABC::rawTodos( TodoSortField sortField, SortDirection sortDirection )
|
||
15 years ago
|
{
|
||
|
return mCalendar.rawTodos( sortField, sortDirection );
|
||
|
}
|
||
|
|
||
12 years ago
|
Todo *ResourceTDEABC::todo( const TQString &uid )
|
||
15 years ago
|
{
|
||
|
return mCalendar.todo( uid );
|
||
|
}
|
||
|
|
||
12 years ago
|
Todo::List ResourceTDEABC::rawTodosForDate( const TQDate &date )
|
||
15 years ago
|
{
|
||
|
return mCalendar.rawTodosForDate( date );
|
||
|
}
|
||
|
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::addJournal( Journal * )
|
||
14 years ago
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::addJournal( Journal *, const TQString & )
|
||
15 years ago
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
12 years ago
|
bool ResourceTDEABC::deleteJournal( Journal * )
|
||
15 years ago
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
12 years ago
|
Journal *ResourceTDEABC::journal(const TQString &uid)
|
||
15 years ago
|
{
|
||
|
return mCalendar.journal( uid );
|
||
|
}
|
||
|
|
||
12 years ago
|
Journal::List ResourceTDEABC::rawJournals( JournalSortField sortField, SortDirection sortDirection )
|
||
15 years ago
|
{
|
||
|
return mCalendar.rawJournals( sortField, sortDirection );
|
||
|
}
|
||
|
|
||
12 years ago
|
Journal::List ResourceTDEABC::rawJournalsForDate( const TQDate &date )
|
||
15 years ago
|
{
|
||
|
return mCalendar.rawJournalsForDate( date );
|
||
|
}
|
||
|
|
||
12 years ago
|
Alarm::List ResourceTDEABC::alarmsTo( const TQDateTime &to )
|
||
15 years ago
|
{
|
||
|
return mCalendar.alarmsTo( to );
|
||
|
}
|
||
|
|
||
12 years ago
|
Alarm::List ResourceTDEABC::alarms( const TQDateTime &from, const TQDateTime &to )
|
||
15 years ago
|
{
|
||
12 years ago
|
// kdDebug(5800) << "ResourceTDEABC::alarms(" << from.toString() << " - " << to.toString() << ")\n";
|
||
15 years ago
|
|
||
|
return mCalendar.alarms( from, to );
|
||
|
}
|
||
|
|
||
12 years ago
|
void ResourceTDEABC::dump() const
|
||
15 years ago
|
{
|
||
|
ResourceCalendar::dump();
|
||
|
}
|
||
|
|
||
12 years ago
|
void ResourceTDEABC::reload()
|
||
15 years ago
|
{
|
||
|
load();
|
||
|
emit resourceChanged( this );
|
||
|
}
|
||
|
|
||
12 years ago
|
void ResourceTDEABC::setTimeZoneId( const TQString& tzid )
|
||
15 years ago
|
{
|
||
|
mCalendar.setTimeZoneId( tzid );
|
||
|
}
|
||
|
|
||
11 years ago
|
#include "resourcetdeabc.moc"
|