You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdenetwork/kopete/protocols/yahoo/libkyahoo/picturenotifiertask.h

52 lines
1.6 KiB

/*
Kopete Yahoo Protocol
Notifies about buddy icons
Copyright (c) 2005 André Duffeck <andre.duffeck@kdemail.net>
*************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
*************************************************************************
*/
#ifndef PICTURENOTIFIERTASK_H
#define PICTURENOTIFIERTASK_H
#include "task.h"
class QString;
class KURL;
class YMSGTransfer;
/**
@author André Duffeck
*/
class PictureNotifierTask : public Task
{
Q_OBJECT
public:
PictureNotifierTask(Task *parent);
~PictureNotifierTask();
bool take(Transfer *transfer);
protected:
bool forMe( Transfer *transfer ) const;
void parsePictureChecksum( YMSGTransfer *transfer );
void parsePictureStatus( YMSGTransfer *transfer );
void parsePicture( YMSGTransfer *transfer );
void parsePictureUploadResponse( YMSGTransfer *transfer );
signals:
void pictureStatusNotify( const QString &, int );
void pictureChecksumNotify( const QString &, int );
void pictureInfoNotify( const QString &, KURL, int );
void pictureRequest( const QString & );
void pictureUploaded( const QString & );
};
#endif