40 if ( !cal || !incidence ) {
45 CalendarResourceManager::Iterator it;
46 for ( it = manager->begin(); it != manager->end(); ++it ) {
47 TQString subRes = (*it)->subresourceIdentifier( incidence );
48 if ( !subRes.isEmpty() && !subRes.contains(
"/.INBOX.directory/" ) ) {
65 existingIncidence = calendar->
incidence( uid );
67 existingIncidence = 0;
69 if ( !existingIncidence ) {
71 for ( Incidence::List::ConstIterator it = list.begin(), end = list.end(); it != end; ++it ) {
73 existingIncidence = *it;
79 return existingIncidence;
90 CalendarResourceManager::Iterator it;
91 for ( it = manager->begin(); it != manager->end(); ++it ) {
92 TQString res = (*it)->type();
93 if ( res ==
"imap" ) {
102 TQString myfamily = family;
103 if ( family.isEmpty() ) {
104 myfamily =
"calendar";
107 CalendarResourceManager manager( myfamily );
108 manager.readConfig();
110 CalendarResourceManager::ActiveIterator it;
111 for ( it=manager.activeBegin(); it != manager.activeEnd(); ++it ) {
112 if ( (*it)->readOnly() ) {
116 const TQStringList subResources = (*it)->subresources();
117 if ( subResources.isEmpty() ) {
121 TQStringList::ConstIterator subIt;
122 for ( subIt=subResources.begin(); subIt != subResources.end(); ++subIt ) {
123 if ( !(*it)->subresourceActive( (*subIt) ) ) {
126 if ( (*it)->type() ==
"imap" || (*it)->type() ==
"kolab" ) {
127 if ( (*it)->subresourceType( ( *subIt ) ) ==
"todo" ||
128 (*it)->subresourceType( ( *subIt ) ) ==
"journal" ||
129 !(*subIt).contains(
"/.INBOX.directory/" ) ) {
142 if ( !cal || !incidence ) {
152 TQPair<ResourceCalendar *, TQString> p( 0, TQString() );
155 if ( !cal || !incidence ) {
165 p = tqMakePair( res, subRes );