[Kde-pim] fixing #42767 : attach directories to mail

laurent Montel montel at kde.org
Wed Aug 31 11:33:05 BST 2011


Le Wednesday 31 August 2011 12:04:46 Martin Bednár a écrit :
> Le Wednesday 31 of August 2011 05:16:20 Torgny Nyblom a écrit :
> > On Wednesday 31 August 2011 00.31.50 Martin Bednár wrote:
> > > Hi,
> > > 
> > > I'm trying to implement folder attaching for kmail (messagecomposer)
> > > using the KZip library.
> > > As of now, I have created a
> > > "class AttachmentFromFolder : public AttachmentLoadJob" And implemented
> > > (I think) the core functionality. The structure of the class is more or
> > > less a copy of AttachmentFromUrlJob To take care of directories, I'm
> > > using the QDir class, and at compile time, I get '
> > > QDir::Filter' is not a class or namespace. I'm completely at a loss as
> > > to
> > > what it means (yes, I'm a C++ newb), since I did include QDir, and used
> > > it according to its documentation.
> > > 
> > > A bit further is (preceded by line numbers).
> > > error: 'QFile::QFile(const QFile&)' is private
> > > error: within this context
> > 
> > Could you post here or elsewhere the code? It will be easier to help if 
one
> > can see the code.
> > 
> > /Regards
> > Torgny
> 
> Posted on kde pastebin : http://pastebin.kde.org/116515/

I think that:
- QFile file = QFile(info.path());
+ QFile file(info.path());

is better and will compile.
Regards

> Thanks
> 
> Martin
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list