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

List:       kde-pim
Subject:    RE: [Kde-pim] Reading VCalendar items from Exchange Server 2000
From:       "Best, Jan-Pascal van" <j.p.vanbest () tbm ! tudelft ! nl>
Date:       2002-04-22 14:47:19
[Download RAW message or body]

Hi Cornelius & others,

At the moment the status of the Exchange 2000 plugin is as follows:
- I built a simple plugins that starts doings things when you hit the
Configure button
- server address, user name etc. are hardcoded for the moment
- the plugin get a list of all entries in the Exchange calendar
- only the first appointment is read (mainly because there are hundreds
of appointments in my calendar)
- the message envelope is unpacked, so that a clean icalendar string
remains

The main thing now is, how do I get this icalendar string into the
calendar that
KOrganizer is using? The Plugin class doesn seem to provide any handles.
I could
convert the plugin to a Part, but the KOrg::MainWindow class will only
let me merge URLs,
not strings. Would the preferred way be to add a openString() function
to
MainWindow (like the openURL() method), or a getCalendar(), so that I
can add 
my ical files using an ICalendarFormat?

Cornelius, I sending you the plugin in a separate email.

Two remarks:
- there seems to be a casting problem with the plugin factories. I had
to replace a
dynamic_cast<> in kocore.c with an old-fashioned cast to get things to
work.
- You also need a two-line patch to kdelibs/kioslave/http/http.c
In the method HTTPProtocol::httpOpen(), add two lines to the HTTP_GET
case in a switch():

  switch ( m_request.method)
  {
  case HTTP_GET:
      header = "GET ";
      if (m_protocol == "webdav" || m_protocol == "webdavs")
        davHeader = "Translate: f\r\n";
      break;

This is hack, and we'll need to talk to the kioslave's maintainer to get
this functionality
in a proper way.

So, please let me know your thoughts about how to get the icalendar data
into korganizer!

Cheers,

Jan-Pascal


["winmail.dat" (application/ms-tnef)]
_______________________________________________
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