Changeset 165

Show
Ignore:
Timestamp:
07/04/08 14:32:49 (5 months ago)
Author:
cyrusdaboo
Message:

Provide offline indication for inbox and outbox.

Location:
Mulberry/branches/v4.1d1/Sources_Common/Calendar_Store
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/branches/v4.1d1/Sources_Common/Calendar_Store/CCalendarStoreNode.cpp

    r113 r165  
    905905                        xmllib::XMLObject::WriteAttribute(xmlnode, cXMLAttribute_has_expanded, HasExpanded()); 
    906906                } 
     907                 
     908                if (IsInbox())           
     909                        xmllib::XMLObject::WriteAttribute(xmlnode, cXMLAttribute_inbox, IsInbox()); 
     910                if (IsOutbox())          
     911                        xmllib::XMLObject::WriteAttribute(xmlnode, cXMLAttribute_outbox, IsOutbox()); 
    907912 
    908913                // Set name child node 
     
    957962                                SetHasExpanded(temp); 
    958963                } 
     964 
     965                if (xmllib::XMLObject::ReadAttribute(xmlnode, cXMLAttribute_inbox, temp)) 
     966                        SetFlags(eIsInbox, temp); 
     967                if (xmllib::XMLObject::ReadAttribute(xmlnode, cXMLAttribute_outbox, temp)) 
     968                        SetFlags(eIsOutbox, temp); 
    959969 
    960970                // Must have a name 
  • Mulberry/branches/v4.1d1/Sources_Common/Calendar_Store/CCalendarStoreXML.cpp

    r113 r165  
    4646        <!ELEMENT calendarnode  (name, last-sync?, webcal?, calendarnode*) > 
    4747        <!ATTLIST calendarnode  directory               (true|false) "false" 
    48                                                         has_expanded    (true|false) > 
     48                                                        has_expanded    (true|false)  
     49                                                        inbox           (true|false) "false" 
     50                                                        outbox          (true|false) "false"> 
    4951 
    5052        <!ELEMENT name                  (#PCDATA) > 
     
    7577const char* cXMLAttribute_directory = "directory"; 
    7678const char* cXMLAttribute_has_expanded = "has_expanded"; 
     79const char*     cXMLAttribute_inbox = "inbox"; 
     80const char*     cXMLAttribute_outbox = "outbox"; 
    7781 
    7882const xmllib::XMLName cXMLElement_name("name"); 
  • Mulberry/branches/v4.1d1/Sources_Common/Calendar_Store/CCalendarStoreXML.h

    r113 r165  
    3636extern const xmllib::XMLName cXMLElement_calendarnode; 
    3737extern const char*                       cXMLAttribute_directory; 
     38extern const char*                       cXMLAttribute_inbox; 
     39extern const char*                       cXMLAttribute_outbox; 
    3840 
    3941extern const xmllib::XMLName cXMLElement_name;