Pogger/src/Util.h

32 lines
624 B
C
Raw Normal View History

2020-12-30 22:07:54 -06:00
/*
* Copyright 2020, Jaidyn Levesque <jadedctrl@teknik.io>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef UTIL_H
#define UTIL_H
#include <DateTime.h>
2020-12-30 22:07:54 -06:00
#include "ProtocolListener.h"
2020-12-30 22:07:54 -06:00
class BUrl;
BDateTime feedDateToBDate(const char*);
BDateTime dateRfc3339ToBDate(const char*);
BDateTime dateRfc822ToBDate(const char*);
BDateTime stringDateToBDate(const char*, const char*);
2020-12-30 22:07:54 -06:00
BString dateTo3339String(BDateTime);
2020-12-30 22:07:54 -06:00
bool withinDateRange(BDateTime, BDateTime, BDateTime);
2020-12-30 22:07:54 -06:00
bool isRemotePath(BString);
int32 webFetch(BUrl, BDataIO*, BString*);
int32 webFetch(BUrl, BDataIO*);
2020-11-16 18:46:07 -06:00
#endif
2020-12-30 22:07:54 -06:00