7 #include "kmacctfolder.h"
13 return acctList()->first();
22 setAcctList(
new AccountList() );
24 acctList()->append( aAcct );
25 aAcct->setFolder(
this );
38 if ( !aAcct || !acctList() )
return;
40 acctList()->remove( aAcct );
41 aAcct->setFolder( 0 );
42 if ( acctList()->
count() <= 0 ) {
KMAccount * account()
Returns first account or 0 if no account is associated with this folder.
int count(bool cache=false) const
Number of messages in this folder.
void addAccount(KMAccount *)
Add given account to the list.
void clearAccountList()
Clear list of accounts.
void removeAccount(KMAccount *)
Remove given account from the list.