summaryrefslogtreecommitdiff
path: root/src/gmrequest.h
blob: b2cd339bf9cb34447628b20c02d598f46d1c93ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <the_Foundation/audience.h>
#include <the_Foundation/object.h>

#include "gemini.h"

iDeclareClass(GmRequest)
iDeclareObjectConstruction(GmRequest)

iDeclareNotifyFunc(GmRequest, Updated)
iDeclareNotifyFunc(GmRequest, Finished)
iDeclareAudienceGetter(GmRequest, updated)
iDeclareAudienceGetter(GmRequest, finished)

void    setUrl_GmRequest    (iGmRequest *, const iString *url);
void    submit_GmRequest    (iGmRequest *);

iBool               isFinished_GmRequest    (const iGmRequest *);
const char *        error_GmRequest         (const iGmRequest *); /* NULL if successful */
enum iGmStatusCode  status_GmRequest        (const iGmRequest *);
const iString *     meta_GmRequest          (const iGmRequest *);
const iBlock  *     body_GmRequest          (const iGmRequest *);
const iString *     url_GmRequest           (const iGmRequest *);