Pogger/src/FeedController.h

41 lines
682 B
C
Raw Normal View History

2021-01-09 16:53:39 -06:00
/*
* Copyright 2020, Jaidyn Levesque <jadedctrl@teknik.io>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef FEEDCONTROLLER_H
#define FEEDCONTROLLER_H
#include <SupportDefs.h>
#include <OS.h>
class BMessage;
enum
{
kEnqueueFeed = 'fenq',
kClearQueue = 'frmq',
kDownloadComplete = 'fdpr',
2021-01-12 15:30:21 -06:00
kQueueProgress = 'fqpr',
kUpdateSubscribed = 'fups'
2021-01-09 16:53:39 -06:00
};
class FeedController{
public:
FeedController();
~FeedController();
void MessageReceived(BMessage* msg);
private:
static int32 _DownloadLoop(void* ignored);
static int32 _ParseLoop(void* ignored);
thread_id fDownloadThread;
thread_id fParseThread;
};
#endif // FEEDCONTROLLER_H