[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/kresources/groupwise/soap
From:       Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date:       2005-07-11 14:14:59
Message-ID: 1121091299.103683.16772.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 433712 by wstephens:

show our attendee status correctly

 M  +4 -2      gwjobs.cpp  
 M  +7 -2      incidenceconverter.cpp  


--- trunk/KDE/kdepim/kresources/groupwise/soap/gwjobs.cpp #433711:433712
@@ -467,7 +467,8 @@
   cursorRequest.container = id;
 #if 1
   cursorRequest.view = soap_new_std__string( mSoap, -1 );
-  cursorRequest.view->append( "container status source security distribution \
acceptLevel startDate endDate subject alarm allDayEvent place timezone iCalId \
recipients message recipientStatus recurrenceKey" ); +  cursorRequest.view->append( \
"default message recipients attachments recipientStatus peek" /*"container status \
source security distribution acceptLevel startDate endDate subject alarm allDayEvent \
place timezone iCalId recipients message recurrenceKey"*/ ); +
 #else
   cursorRequest.view = 0;
 #endif
@@ -512,7 +513,8 @@
   
     if ( readCursorResponse.items ) {
       IncidenceConverter conv( mSoap );
-  
+      conv.setFrom( mServer->userName(), mServer->userEmail(), mServer->userUuid() \
); +
       std::vector<class ngwt__Item * >::const_iterator it;
       for( it = readCursorResponse.items->item.begin(); it != \
readCursorResponse.items->item.end(); ++it ) {  KCal::Incidence *i = 0;
--- trunk/KDE/kdepim/kresources/groupwise/soap/incidenceconverter.cpp #433711:433712
@@ -604,13 +604,18 @@
 
     for ( it = recipients.begin(); it != recipients.end(); ++it ) {
 /*      kdDebug() << "---- recipient " << endl;
- */     ngwt__Recipient *recipient = *it;
+ */   ngwt__Recipient *recipient = *it;
       KCal::Attendee *attendee = new KCal::Attendee(
         stringToQString( recipient->displayName ),
         stringToQString( recipient->email ) );
 
+      // set our status
+      if ( *(recipient->email) == *(qStringToString( mFromEmail )) )
+        if ( item->status->accepted )
+          attendee->setStatus( ( *item->status->accepted ) ? \
KCal::Attendee::Accepted : KCal::Attendee::NeedsAction ); +
       incidence->addAttendee( attendee );
-    } 
+    }
   }
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic