[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: Re: Kmail API?
From: Hans Dijkema <h.dijkema () hum ! org>
Date: 2000-07-31 18:03:42
[Download RAW message or body]
Don,
OK to me, I don't know the internals of kmail (don't want to
right now).
So you propose:
> bool existFolder(char* folderPath);
> bool createFolder(char* folderPath);
> int searchFolder(char* folderPath); // what is the int return for here?
In this setup, the previous function isn't nessecary.
>
> // normally would use Qt datatype but I guess istream and FILE* are ok.
> bool addMessage(char* folderPath,istream & message);
> bool addMessage(char* folderPath,FILE *message);
Qt datatype is OK to me too. I don't know which one to use though.
istream isn't nessecary.
> // bool addMessage(char* folderPath,string & message); can't do this
> // because of the string argument
OK no problem.
> bool addMessage(ichar* folderPath,const char *message);
> // for addMessage the message should be local8bit encoded.
No problem I think, I would make it
bool addMessage(const char *folder,const char *message).
==> Hey, does folderPath mean "$HOME/Mail/folder/subfolder..."
Or "folder/subfolder..."
best regards,
Hans
>
Op Mon, 31 Jul 2000, schreef Don Sanders:
> On Sun, 30 Jul 2000, Hans Dijkema wrote:
> > Hi there,
> >
> > I would be very interested in a kmail API to the
> > tree and message stores of kmail. It would be
> > of great support for kmailcvt to have a call
> > like
> >
> > bool existFolder(string folder);
> > bool createFolder(string folder);
> > int searchFolder(string folder);
> >
> > bool addMessage(int folderHandle,istream & message);
> > bool addMessage(int folderHandle,FILE *message);
> > bool addMessage(int folderHandle,string & message);
> > bool addMessage(int folderHandle,const char *message);
> >
> > Could this be added to kmail?
>
> I'm cool with that but I think we have problems with the datatypes. KMail
> doesn't use the stl, I don't want to use 'string' as a data type. Also I'm
> not sure about these 'int folderHandle'. I think we want to use char*
> folderPath where folderPath is the file name of the mail folder to be
> operated on.
>
> So I think this would be better:
>
> bool existFolder(char* folderPath);
> bool createFolder(char* folderPath);
> int searchFolder(char* folderPath); // what is the int return for here?
>
> // normally would use Qt datatype but I guess istream and FILE* are ok.
> bool addMessage(char* folderPath,istream & message);
> bool addMessage(char* folderPath,FILE *message);
> // bool addMessage(char* folderPath,string & message); can't do this
> // because of the string argument
> bool addMessage(ichar* folderPath,const char *message);
> // for addMessage the message should be local8bit encoded.
>
> and Waldo is right of course we will use dcop for this.
>
> >
> > Thanks in advance for answers,
> > Hans Dijkema
--
Groeten,
Hans Dijkema
hdijkema@be-value.nl
h.dijkema@hum.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic