[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: Re: Kmail API?
From: Don Sanders <sanders () kde ! org>
Date: 2000-08-03 10:44:36
[Download RAW message or body]
It's good that you can use the qt datatypes.
Hans maybe we can get back to this after a stable version of KMail is
released? It's just that bug fixing is taking up a lot of my time now...
BFN,
Don.
On Mon, 31 Jul 2000, Hans Dijkema wrote:
> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic