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

List:       kde-pim
Subject:    Re: [Kde-pim] libkcal amendments for email alarms
From:       David Jarvie <lists () astrojar ! org ! uk>
Date:       2002-12-02 13:04:59
[Download RAW message or body]

On Friday 29 Nov 2002 8:16 am, Cornelius Schumacher wrote:
> On Friday 29 November 2002 00:19, David Jarvie wrote:
> > The Alarm class would hold a QMap<QCString, QString> of custom
> > properties, without actually knowing their meaning.
> > ICalFormatImpl::readAlarm() would read in all the custom property
> > name/value pairs and set them into the Alarm instance. The application
> > would read any custom property values which it was interested in from the
> > Alarm instance, via a 'QString
> > customProperty(const QCString *key) const" method. The application would
> > set any custom properties via 'void setCustomProperty(const QCString
> > &key, const QString &value)', which would simply add/substitute the
> > specified key/value pair into the Alarm instance's map. Then
> > ICalFormatImpl::writeAlarm() would read the complete list of custom
> > properties from the Alarm instance using 'QMap<QCString, QString>
> > customProperties() const' and write them all to the VALARM component.
> > The application would probably also need either a method to initialise
> > the custom properties map to empty, or to delete a specified custom
> > property from the Alarm.
>
> That's exactly what I meant. Are you sure about the QCString argument? Does
> iCalendar define the property names to be something different than utf8?

I see that RFC2445 specifies that property names must consist of only ASCII 
characters (specifically A-Z, a-z, 0-9 and '-'). Presumably it is therefore 
appropriate to use QCString rather than QString for the property names?

-- 
David Jarvie
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

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