Chat-O-Matic/libs/libdownload/QueueFileDownload.h

34 lines
632 B
C
Raw Normal View History

2010-07-10 08:37:58 -05:00
/*
* Copyright 2010, Andrea Anzani. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef QueueFileDownload_H_
#define QueueFileDownload_H_
#include <Looper.h>
#include "QueueMultiActions.h"
class QueueFileDownload : public QueueMultiActions
{
public:
QueueFileDownload(const char* name, int howMany, BLooper* target, uint32 msg)
:
QueueMultiActions(name, howMany)
{
fMsg = msg;
fLooper = target;
}
protected:
void ActionPerformed(Action*, status_t, BMessage*);
void ActionReadyToPerform(Action*);
void SuppressAction(Action*);
private:
BLooper* fLooper;
uint32 fMsg;
};
#endif