summaryrefslogtreecommitdiffstats
path: root/kmail/kmailicalifaceimpl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kmail/kmailicalifaceimpl.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmailicalifaceimpl.cpp')
-rw-r--r--kmail/kmailicalifaceimpl.cpp132
1 files changed, 66 insertions, 66 deletions
diff --git a/kmail/kmailicalifaceimpl.cpp b/kmail/kmailicalifaceimpl.cpp
index 41e9f96d7..812374734 100644
--- a/kmail/kmailicalifaceimpl.cpp
+++ b/kmail/kmailicalifaceimpl.cpp
@@ -22,11 +22,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -236,7 +236,7 @@ inline static void debugBodyParts( const char*, const KMMessage& ) {}
// Add (or overwrite, resp.) an attachment in an existing mail,
// attachments must be local files, they are identified by their names.
-// If lookupByName if false the attachment to tqreplace is looked up by mimetype.
+// If lookupByName if false the attachment to replace is looked up by mimetype.
// return value: wrong if attachment could not be added/updated
bool KMailICalIfaceImpl::updateAttachment( KMMessage& msg,
const TQString& attachmentURL,
@@ -260,7 +260,7 @@ bool KMailICalIfaceImpl::updateAttachment( KMMessage& msg,
KMMessagePart msgPart;
msgPart.setName( attachmentName );
- const int iSlash = attachmentMimetype.find('/');
+ const int iSlash = attachmentMimetype.tqfind('/');
const TQCString sType = attachmentMimetype.left( iSlash ).latin1();
const TQCString sSubtype = attachmentMimetype.mid( iSlash+1 ).latin1();
msgPart.setTypeStr( sType );
@@ -309,7 +309,7 @@ bool KMailICalIfaceImpl::updateAttachment( KMMessage& msg,
// Look for the attachment with the right mimetype
bool KMailICalIfaceImpl::kolabXMLFoundAndDecoded( const KMMessage& msg, const TQString& mimetype, TQString& s )
{
- const int iSlash = mimetype.find('/');
+ const int iSlash = mimetype.tqfind('/');
const TQCString sType = mimetype.left( iSlash ).latin1();
const TQCString sSubtype = mimetype.mid( iSlash+1 ).latin1();
DwBodyPart* part = findBodyPartByMimeType( msg, sType, sSubtype, true /* starts with sSubtype, to accept application/x-vnd.kolab.contact.distlist */ );
@@ -556,7 +556,7 @@ TQMap<TQ_UINT32, TQString> KMailICalIfaceImpl::incidencesKolab( const TQString&
kdDebug(5006) << "The folder has " << f->count() << " messages." << endl;
int stopIndex = nbMessages == -1 ? f->count() :
- QMIN( f->count(), startIndex + nbMessages );
+ TQMIN( f->count(), startIndex + nbMessages );
for(int i = startIndex; i < stopIndex; ++i) {
#if 0
@@ -566,7 +566,7 @@ TQMap<TQ_UINT32, TQString> KMailICalIfaceImpl::incidencesKolab( const TQString&
KMMessage* msg = f->storage()->readTemporaryMsg(i);
#endif
if ( msg ) {
- const int iSlash = mimetype.find('/');
+ const int iSlash = mimetype.tqfind('/');
const TQCString sType = mimetype.left( iSlash ).latin1();
const TQCString sSubtype = mimetype.mid( iSlash+1 ).latin1();
if ( sType.isEmpty() || sSubtype.isEmpty() ) {
@@ -611,12 +611,12 @@ void KMailICalIfaceImpl::slotMessageRetrieved( KMMessage* msg )
{
if( !msg ) return;
- KMFolder *parent = msg->parent();
- Q_ASSERT( parent );
+ KMFolder *tqparent = msg->tqparent();
+ Q_ASSERT( tqparent );
TQ_UINT32 sernum = msg->getMsgSerNum();
// do we have an accumulator for this folder?
- Accumulator *ac = mAccumulators.find( parent->location() );
+ Accumulator *ac = mAccumulators.tqfind( tqparent->location() );
if( ac ) {
TQString s;
if ( !vPartFoundAndDecoded( msg, s ) ) return;
@@ -634,7 +634,7 @@ void KMailICalIfaceImpl::slotMessageRetrieved( KMMessage* msg )
} else {
/* We are not accumulating for this folder, so this one was added
* by KMail. Do your thang. */
- slotIncidenceAdded( msg->parent(), msg->getMsgSerNum() );
+ slotIncidenceAdded( msg->tqparent(), msg->getMsgSerNum() );
}
if ( mTheUnGetMes.tqcontains( sernum ) ) {
@@ -687,10 +687,10 @@ static TQString subresourceLabelForPresentation( const KMFolder * folder )
}
// Another special case is our own folders, under the imap INBOX, make
// those prettier too
- const KMFolder *parent = folder;
- while ( parent->parent() && parent->parent()->owner() ) {
- parent = parent->parent()->owner();
- if ( parent->isSystemFolder() ) {
+ const KMFolder *tqparent = folder;
+ while ( tqparent->tqparent() && tqparent->tqparent()->owner() ) {
+ tqparent = tqparent->tqparent()->owner();
+ if ( tqparent->isSystemFolder() ) {
TQStringList remainder(parts);
remainder.pop_front();
remainder.pop_front();
@@ -720,7 +720,7 @@ TQValueList<KMailICalIfaceImpl::SubResource> KMailICalIfaceImpl::subresourcesKol
TQValueList<SubResource> subResources;
// Add the default one
- KMFolder* f = folderFromType( contentsType, TQString::null );
+ KMFolder* f = folderFromType( contentsType, TQString() );
if ( f ) {
subResources.append( SubResource( f->location(), subresourceLabelForPresentation( f ),
f->isWritable(), folderIsAlarmRelevant( f ) ) );
@@ -1139,7 +1139,7 @@ void KMailICalIfaceImpl::slotIncidenceAdded( KMFolder* folder,
// go get the rest of it, then try again
// TODO: Till, port me
if ( unget ) mTheUnGetMes.insert( msg->getMsgSerNum(), true );
- FolderJob *job = msg->parent()->createJob( msg );
+ FolderJob *job = msg->tqparent()->createJob( msg );
connect( job, TQT_SIGNAL( messageRetrieved( KMMessage* ) ),
this, TQT_SLOT( slotMessageRetrieved( KMMessage* ) ) );
job->start();
@@ -1199,7 +1199,7 @@ void KMailICalIfaceImpl::slotIncidenceDeleted( KMFolder* folder,
void KMailICalIfaceImpl::slotRefresh( const TQString& type )
{
if( mUseResourceIMAP ) {
- signalRefresh( type, TQString::null /* PENDING(bo) folder->location() */ );
+ signalRefresh( type, TQString() /* PENDING(bo) folder->location() */ );
kdDebug(5006) << "Emitting DCOP signal signalRefresh( " << type << " )" << endl;
}
}
@@ -1213,7 +1213,7 @@ void KMailICalIfaceImpl::slotRefreshFolder( KMFolder* folder)
if( mUseResourceIMAP && folder ) {
if( folder == mCalendar || folder == mContacts
|| folder == mNotes || folder == mTasks
- || folder == mJournals || mExtraFolders.find( folder->location() ) ) {
+ || folder == mJournals || mExtraFolders.tqfind( folder->location() ) ) {
// Refresh the folder of this type
KMail::FolderContentsType ct = folder->storage()->contentsType();
slotRefresh( s_folderContentsType[ct].contentsTypeStr );
@@ -1257,7 +1257,7 @@ KMFolder* KMailICalIfaceImpl::folderFromType( const TQString& type,
bool KMailICalIfaceImpl::isResourceFolder( KMFolder* folder ) const
{
return mUseResourceIMAP && folder &&
- ( isStandardResourceFolder( folder ) || mExtraFolders.find( folder->location() )!=0 );
+ ( isStandardResourceFolder( folder ) || mExtraFolders.tqfind( folder->location() )!=0 );
}
bool KMailICalIfaceImpl::isStandardResourceFolder( KMFolder* folder ) const
@@ -1286,7 +1286,7 @@ KFolderTreeItem::Type KMailICalIfaceImpl::folderType( KMFolder* folder ) const
if( mUseResourceIMAP && folder ) {
if( folder == mCalendar || folder == mContacts
|| folder == mNotes || folder == mTasks
- || folder == mJournals || mExtraFolders.find( folder->location() ) ) {
+ || folder == mJournals || mExtraFolders.tqfind( folder->location() ) ) {
KMail::FolderContentsType ct = folder->storage()->contentsType();
return s_folderContentsType[ct].treeItemType;
}
@@ -1385,9 +1385,9 @@ void KMailICalIfaceImpl::deleteMsg( KMMessage *msg )
{
if( !msg ) return;
// Commands are now delayed; can't use that anymore, we need immediate deletion
- //( new KMDeleteMsgCommand( msg->parent(), msg ) )->start();
- KMFolder *srcFolder = msg->parent();
- int idx = srcFolder->find(msg);
+ //( new KMDeleteMsgCommand( msg->tqparent(), msg ) )->start();
+ KMFolder *srcFolder = msg->tqparent();
+ int idx = srcFolder->tqfind(msg);
assert(idx != -1);
// kill existing jobs since we are about to delete the message
srcFolder->ignoreJobsForMessage( msg );
@@ -1415,7 +1415,7 @@ void KMailICalIfaceImpl::folderContentsTypeChanged( KMFolder* folder,
// Check if already know that 'extra folder'
const TQString location = folder->location();
- ExtraFolder* ef = mExtraFolders.find( location );
+ ExtraFolder* ef = mExtraFolders.tqfind( location );
if ( ef && ef->folder ) {
// Notify that the old folder resource is no longer available
subresourceDeleted(folderContentsType( folder->storage()->contentsType() ), location );
@@ -1469,7 +1469,7 @@ KMFolder* KMailICalIfaceImpl::extraFolder( const TQString& type,
if ( t < 1 || t > 5 )
return 0;
- ExtraFolder* ef = mExtraFolders.find( folder );
+ ExtraFolder* ef = mExtraFolders.tqfind( folder );
if ( ef && ef->folder && ef->folder->storage()->contentsType() == t )
return ef->folder;
@@ -1478,7 +1478,7 @@ KMFolder* KMailICalIfaceImpl::extraFolder( const TQString& type,
KMailICalIfaceImpl::StorageFormat KMailICalIfaceImpl::storageFormat( KMFolder* folder ) const
{
- FolderInfoMap::ConstIterator it = mFolderInfoMap.find( folder );
+ FolderInfoMap::ConstIterator it = mFolderInfoMap.tqfind( folder );
if ( it != mFolderInfoMap.end() )
return (*it).mStorageFormat;
return globalStorageFormat();
@@ -1486,7 +1486,7 @@ KMailICalIfaceImpl::StorageFormat KMailICalIfaceImpl::storageFormat( KMFolder* f
void KMailICalIfaceImpl::setStorageFormat( KMFolder* folder, StorageFormat format )
{
- FolderInfoMap::Iterator it = mFolderInfoMap.find( folder );
+ FolderInfoMap::Iterator it = mFolderInfoMap.tqfind( folder );
if ( it != mFolderInfoMap.end() ) {
(*it).mStorageFormat = format;
} else {
@@ -1500,7 +1500,7 @@ void KMailICalIfaceImpl::setStorageFormat( KMFolder* folder, StorageFormat forma
void KMailICalIfaceImpl::addFolderChange( KMFolder* folder, FolderChanges changes )
{
- FolderInfoMap::Iterator it = mFolderInfoMap.find( folder );
+ FolderInfoMap::Iterator it = mFolderInfoMap.tqfind( folder );
if ( it != mFolderInfoMap.end() ) {
(*it).mChanges = static_cast<FolderChanges>( (*it).mChanges | changes );
} else { // Otherwise, well, it's a folder we don't care about.
@@ -1529,7 +1529,7 @@ KMailICalIfaceImpl::FolderInfo KMailICalIfaceImpl::readFolderInfo( const KMFolde
void KMailICalIfaceImpl::folderSynced( KMFolder* folder, const KURL& folderURL )
{
- FolderInfoMap::Iterator it = mFolderInfoMap.find( folder );
+ FolderInfoMap::Iterator it = mFolderInfoMap.tqfind( folder );
if ( it != mFolderInfoMap.end() && (*it).mChanges ) {
handleFolderSynced( folder, folderURL, (*it).mChanges );
(*it).mChanges = NoChange;
@@ -1569,13 +1569,13 @@ void KMailICalIfaceImpl::triggerKolabFreeBusy( const KURL& folderURL )
// IMAP path is either /INBOX/<path> or /user/someone/<path>
TQString path = folderURL.path( -1 );
Q_ASSERT( path.startsWith( "/" ) );
- int secondSlash = path.find( '/', 1 );
+ int secondSlash = path.tqfind( '/', 1 );
if ( secondSlash == -1 ) {
kdWarning() << "KCal::ResourceKolab::fromKMailFolderSynced path is too short: " << path << endl;
return;
}
if ( path.startsWith( "/INBOX/", false ) ) {
- // If INBOX, tqreplace it with the username (which is user@domain)
+ // If INBOX, replace it with the username (which is user@domain)
path = path.mid( secondSlash );
path.prepend( folderURL.user() );
} else {
@@ -1585,7 +1585,7 @@ void KMailICalIfaceImpl::triggerKolabFreeBusy( const KURL& folderURL )
}
httpURL.setPath( "/freebusy/trigger/" + path + ".pfb" );
- httpURL.setQuery( TQString::null );
+ httpURL.setQuery( TQString() );
// Ensure that we encode everything with UTF8
httpURL = KURL( httpURL.url(0,106), 106 );
kdDebug() << "Triggering PFB update for " << folderURL << " : getting " << httpURL << endl;
@@ -1617,7 +1617,7 @@ void KMailICalIfaceImpl::slotFolderLocationChanged( const TQString &oldLocation,
const TQString &newLocation )
{
KMFolder *folder = findResourceFolder( oldLocation );
- ExtraFolder* ef = mExtraFolders.find( oldLocation );
+ ExtraFolder* ef = mExtraFolders.tqfind( oldLocation );
if ( ef ) {
// reuse the ExtraFolder entry, but adjust the key
mExtraFolders.setAutoDelete( false );
@@ -1645,7 +1645,7 @@ KMFolder* KMailICalIfaceImpl::findResourceFolder( const TQString& resource )
return mJournals;
// No luck. Try the extrafolders
- ExtraFolder* ef = mExtraFolders.find( resource );
+ ExtraFolder* ef = mExtraFolders.tqfind( resource );
if ( ef )
return ef->folder;
@@ -1702,24 +1702,24 @@ void KMailICalIfaceImpl::readConfig()
// Read remaining options
const bool hideFolders = GlobalSettings::self()->hideGroupwareFolders();
- TQString parentName = GlobalSettings::self()->theIMAPResourceFolderParent();
+ TQString tqparentName = GlobalSettings::self()->theIMAPResourceFolderParent();
- // Find the folder parent
+ // Find the folder tqparent
KMFolderDir* folderParentDir;
KMFolderType folderType;
- KMFolder* folderParent = kmkernel->findFolderById( parentName );
+ KMFolder* folderParent = kmkernel->findFolderById( tqparentName );
if( folderParent == 0 ) {
// Parent folder not found. It was probably deleted. The user will have to
// configure things again.
- kdDebug(5006) << "Groupware folder " << parentName << " not found. Groupware functionality disabled" << endl;
+ kdDebug(5006) << "Groupware folder " << tqparentName << " not found. Groupware functionality disabled" << endl;
// Or maybe the inbox simply wasn't created on the first startup
- KMAccount* account = kmkernel->acctMgr()->find( GlobalSettings::self()->theIMAPResourceAccount() );
+ KMAccount* account = kmkernel->acctMgr()->tqfind( GlobalSettings::self()->theIMAPResourceAccount() );
Q_ASSERT( account );
if ( account ) {
// just in case we were connected already
- disconnect( account, TQT_SIGNAL( finishedCheck( bool, CheckStatus ) ),
+ disconnect( account, TQT_SIGNAL( finishedCheck( bool, ChecktqStatus ) ),
this, TQT_SLOT( slotCheckDone() ) );
- connect( account, TQT_SIGNAL( finishedCheck( bool, CheckStatus ) ),
+ connect( account, TQT_SIGNAL( finishedCheck( bool, ChecktqStatus ) ),
this, TQT_SLOT( slotCheckDone() ) );
}
mUseResourceIMAP = false;
@@ -1738,7 +1738,7 @@ void KMailICalIfaceImpl::readConfig()
KMAcctCachedImap::GroupwareType groupwareType = dynamic_cast<KMFolderCachedImap *>( folderParent->storage() )->account()->groupwareType();
if ( groupwareType == KMAcctCachedImap::GroupwareKolab ) {
- // Make sure the folder parent has the subdirs
+ // Make sure the folder tqparent has the subdirs
// Globally there are 3 cases: nothing found, some stuff found by type/name heuristics, or everything found OK
bool noneFound = true;
bool mustFix = false; // true when at least one was found by heuristics
@@ -1771,12 +1771,12 @@ void KMailICalIfaceImpl::readConfig()
if( noneFound || mustFix ) {
TQString msg;
- TQString parentFolderName = folderParent != 0 ? folderParent->name() : folderParentDir->name();
+ TQString tqparentFolderName = folderParent != 0 ? folderParent->name() : folderParentDir->name();
if ( noneFound ) {
// No subfolder was found, so ask if we can make them
msg = i18n("KMail will now create the required groupware folders"
" as subfolders of %1; if you do not want this, cancel"
- " and the IMAP resource will be disabled").arg(parentFolderName);
+ " and the IMAP resource will be disabled").arg(tqparentFolderName);
} else {
// Some subfolders were found, be more precise
TQString operations = "<ul>";
@@ -1794,7 +1794,7 @@ void KMailICalIfaceImpl::readConfig()
msg = i18n("<qt>KMail found the following groupware folders in %1 and needs to perform the following operations: %2"
"<br>If you do not want this, cancel"
- " and the IMAP resource will be disabled").arg(parentFolderName, operations);
+ " and the IMAP resource will be disabled").arg(tqparentFolderName, operations);
}
@@ -1959,14 +1959,14 @@ void KMailICalIfaceImpl::readConfig()
void KMailICalIfaceImpl::slotCheckDone()
{
- TQString parentName = GlobalSettings::self()->theIMAPResourceFolderParent();
- KMFolder* folderParent = kmkernel->findFolderById( parentName );
+ TQString tqparentName = GlobalSettings::self()->theIMAPResourceFolderParent();
+ KMFolder* folderParent = kmkernel->findFolderById( tqparentName );
//kdDebug(5006) << k_funcinfo << " folderParent=" << folderParent << endl;
if ( folderParent ) // cool it exists now
{
- KMAccount* account = kmkernel->acctMgr()->find( GlobalSettings::self()->theIMAPResourceAccount() );
+ KMAccount* account = kmkernel->acctMgr()->tqfind( GlobalSettings::self()->theIMAPResourceAccount() );
if ( account )
- disconnect( account, TQT_SIGNAL( finishedCheck( bool, CheckStatus ) ),
+ disconnect( account, TQT_SIGNAL( finishedCheck( bool, ChecktqStatus ) ),
this, TQT_SLOT( slotCheckDone() ) );
readConfig();
}
@@ -2003,9 +2003,9 @@ KMFolder* KMailICalIfaceImpl::initFolder( KMail::FolderContentsType contentsType
folder =
mFolderParentDir->createFolder( localizedDefaultFolderName( contentsType ), false, type );
if( mFolderType == KMFolderTypeImap ) {
- KMFolderImap* parentFolder = static_cast<KMFolderImap*>( mFolderParent->storage() );
- parentFolder->createFolder( localizedDefaultFolderName( contentsType ) );
- static_cast<KMFolderImap*>( folder->storage() )->setAccount( parentFolder->account() );
+ KMFolderImap* tqparentFolder = static_cast<KMFolderImap*>( mFolderParent->storage() );
+ tqparentFolder->createFolder( localizedDefaultFolderName( contentsType ) );
+ static_cast<KMFolderImap*>( folder->storage() )->setAccount( tqparentFolder->account() );
}
// Groupware folder created, use the global setting for storage format
setStorageFormat( folder, globalStorageFormat() );
@@ -2136,7 +2136,7 @@ void KMailICalIfaceImpl::cleanup()
TQString KMailICalIfaceImpl::folderPixmap( KFolderTreeItem::Type type ) const
{
if( !mUseResourceIMAP )
- return TQString::null;
+ return TQString();
if( type == KFolderTreeItem::Contacts )
return TQString::tqfromLatin1( "kmgroupware_folder_contacts" );
@@ -2149,7 +2149,7 @@ TQString KMailICalIfaceImpl::folderPixmap( KFolderTreeItem::Type type ) const
else if( type == KFolderTreeItem::Journals )
return TQString::tqfromLatin1( "kmgroupware_folder_journals" );
- return TQString::null;
+ return TQString();
}
static void reloadFolderTree()
@@ -2287,17 +2287,17 @@ bool KMailICalIfaceImpl::isResourceQuiet() const
bool KMailICalIfaceImpl::addSubresource( const TQString& resource,
- const TQString& parent,
+ const TQString& tqparent,
const TQString& contentsType )
{
- kdDebug(5006) << "Adding subresource to parent: " << parent << " with name: " << resource << endl;
+ kdDebug(5006) << "Adding subresource to tqparent: " << tqparent << " with name: " << resource << endl;
kdDebug(5006) << "contents type: " << contentsType << endl;
- KMFolder *folder = findResourceFolder( parent );
- KMFolderDir *parentFolderDir = !parent.isEmpty() && folder ? folder->createChildFolder(): mFolderParentDir;
- if ( !parentFolderDir || parentFolderDir->hasNamedFolder( resource ) ) return false;
+ KMFolder *folder = findResourceFolder( tqparent );
+ KMFolderDir *tqparentFolderDir = !tqparent.isEmpty() && folder ? folder->createChildFolder(): mFolderParentDir;
+ if ( !tqparentFolderDir || tqparentFolderDir->hasNamedFolder( resource ) ) return false;
TQString msg;
- if ( parentFolderDir->owner() && !parentFolderDir->owner()->isValidName( resource, msg ) ) {
+ if ( tqparentFolderDir->owner() && !tqparentFolderDir->owner()->isValidName( resource, msg ) ) {
KMessageBox::error( 0, msg );
return false;
}
@@ -2305,7 +2305,7 @@ bool KMailICalIfaceImpl::addSubresource( const TQString& resource,
KMFolderType type = mFolderType;
if( type == KMFolderTypeUnknown ) type = KMFolderTypeMaildir;
- KMFolder* newFolder = parentFolderDir->createFolder( resource, false, type );
+ KMFolder* newFolder = tqparentFolderDir->createFolder( resource, false, type );
if ( !newFolder ) return false;
if( mFolderType == KMFolderTypeImap )
static_cast<KMFolderImap*>( folder->storage() )->createFolder( resource );
@@ -2359,10 +2359,10 @@ void KMailICalIfaceImpl::syncFolder(KMFolder * folder) const
KMFolderCachedImap *dimapFolder = dynamic_cast<KMFolderCachedImap*>( folder->storage() );
if ( !dimapFolder )
return;
- // check if the folder exists already, otherwise sync its parent as well to create it
+ // check if the folder exists already, otherwise sync its tqparent as well to create it
if ( dimapFolder->imapPath().isEmpty() ) {
- if ( folder->parent() && folder->parent()->owner() )
- syncFolder( folder->parent()->owner() );
+ if ( folder->tqparent() && folder->tqparent()->owner() )
+ syncFolder( folder->tqparent()->owner() );
else
return;
}