|
|
@ -91,10 +91,10 @@ KMMsgIndex::KMMsgIndex( TQObject* parent ):
|
|
|
|
mSlowDown( false ) {
|
|
|
|
mSlowDown( false ) {
|
|
|
|
kdDebug( 5006 ) << "KMMsgIndex::KMMsgIndex()" << endl;
|
|
|
|
kdDebug( 5006 ) << "KMMsgIndex::KMMsgIndex()" << endl;
|
|
|
|
|
|
|
|
|
|
|
|
connect( kmkernel->folderMgr(), TQT_SIGNAL( msgRemoved( KMFolder*, TQ_UINT32 ) ), TQT_SLOT( slotRemoveMessage( TQ_UINT32 ) ) );
|
|
|
|
connect( kmkernel->folderMgr(), TQT_SIGNAL( msgRemoved( KMFolder*, TQ_UINT32 ) ), TQT_SLOT( slotRemoveMessage( KMFolder*, TQ_UINT32 ) ) );
|
|
|
|
connect( kmkernel->folderMgr(), TQT_SIGNAL( msgAdded( KMFolder*, TQ_UINT32 ) ), TQT_SLOT( slotAddMessage( TQ_UINT32 ) ) );
|
|
|
|
connect( kmkernel->folderMgr(), TQT_SIGNAL( msgAdded( KMFolder*, TQ_UINT32 ) ), TQT_SLOT( slotAddMessage( KMFolder*, TQ_UINT32 ) ) );
|
|
|
|
connect( kmkernel->dimapFolderMgr(), TQT_SIGNAL( msgRemoved( KMFolder*, TQ_UINT32 ) ), TQT_SLOT( slotRemoveMessage( TQ_UINT32 ) ) );
|
|
|
|
connect( kmkernel->dimapFolderMgr(), TQT_SIGNAL( msgRemoved( KMFolder*, TQ_UINT32 ) ), TQT_SLOT( slotRemoveMessage( KMFolder*, TQ_UINT32 ) ) );
|
|
|
|
connect( kmkernel->dimapFolderMgr(), TQT_SIGNAL( msgAdded( KMFolder*, TQ_UINT32 ) ), TQT_SLOT( slotAddMessage( TQ_UINT32 ) ) );
|
|
|
|
connect( kmkernel->dimapFolderMgr(), TQT_SIGNAL( msgAdded( KMFolder*, TQ_UINT32 ) ), TQT_SLOT( slotAddMessage( KMFolder*, TQ_UINT32 ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
connect( mTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( act() ) );
|
|
|
|
connect( mTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( act() ) );
|
|
|
|
//connect( mSyncTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( syncIndex() ) );
|
|
|
|
//connect( mSyncTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( syncIndex() ) );
|
|
|
@ -482,7 +482,7 @@ bool KMMsgIndex::canHandleQuery( const KMSearchPattern* pat ) const {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KMMsgIndex::slotAddMessage( TQ_UINT32 serNum ) {
|
|
|
|
void KMMsgIndex::slotAddMessage( KMFolder*, TQ_UINT32 serNum ) {
|
|
|
|
kdDebug( 5006 ) << "KMMsgIndex::slotAddMessage( . , " << serNum << " )" << endl;
|
|
|
|
kdDebug( 5006 ) << "KMMsgIndex::slotAddMessage( . , " << serNum << " )" << endl;
|
|
|
|
if ( mState == s_error || mState == s_disabled ) return;
|
|
|
|
if ( mState == s_error || mState == s_disabled ) return;
|
|
|
|
|
|
|
|
|
|
|
@ -493,7 +493,7 @@ void KMMsgIndex::slotAddMessage( TQ_UINT32 serNum ) {
|
|
|
|
scheduleAction();
|
|
|
|
scheduleAction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KMMsgIndex::slotRemoveMessage( TQ_UINT32 serNum ) {
|
|
|
|
void KMMsgIndex::slotRemoveMessage( KMFolder*, TQ_UINT32 serNum ) {
|
|
|
|
kdDebug( 5006 ) << "KMMsgIndex::slotRemoveMessage( . , " << serNum << " )" << endl;
|
|
|
|
kdDebug( 5006 ) << "KMMsgIndex::slotRemoveMessage( . , " << serNum << " )" << endl;
|
|
|
|
if ( mState == s_error || mState == s_disabled ) return;
|
|
|
|
if ( mState == s_error || mState == s_disabled ) return;
|
|
|
|
|
|
|
|
|
|
|
|