summary refs log blame commit diff stats
path: root/src/common/notify.h
blob: 37674fe581d460e7fc76d30dd2374164d682398b (plain) (tree)











































                                                                                                
#ifndef XCHAT_NOTIFY_H
#define XCHAT_NOTIFY_H

struct notify
{
	char *name;
	char *networks;	/* network names, comma sep */
	GSList *server_list;
};

struct notify_per_server
{
	struct server *server;
	struct notify *notify;
	time_t laston;
	time_t lastseen;
	time_t lastoff;
	unsigned int ison:1;
};

extern GSList *notify_list;
extern int notify_tag;

/* the WATCH stuff */
void notify_set_online (server * serv, char *nick);
void notify_set_offline (server * serv, char *nick, int quiet);
void notify_send_watches (server * serv);

/* the general stuff */
void notify_adduser (char *name, char *networks);
int notify_deluser (char *name);
void notify_cleanup (void);
void notify_load (void);
void notify_save (void);
void notify_showlist (session *sess);
gboolean notify_is_in_list (server *serv, char *name);
int notify_isnotify (session *sess, char *name);
struct notify_per_server *notify_find_server_entry (struct notify *notify, struct server *serv);

/* the old ISON stuff - remove me? */
void notify_markonline (server *serv, char *word[]);
int notify_checklist (void);

#endif
VT_EMPTY, NULL, NULL); } double CWMPControls::GetCurrentPosition() { double result; InvokeHelper(0x38, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL); return result; } void CWMPControls::SetCurrentPosition(double newValue) { static BYTE parms[] = VTS_R8; InvokeHelper(0x38, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); } CString CWMPControls::GetCurrentPositionString() { CString result; InvokeHelper(0x39, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); return result; } void CWMPControls::next() { InvokeHelper(0x3a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); } void CWMPControls::previous() { InvokeHelper(0x3b, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); } CWMPMedia CWMPControls::GetCurrentItem() { LPDISPATCH pDispatch; InvokeHelper(0x3c, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL); return CWMPMedia(pDispatch); } void CWMPControls::SetCurrentItem(LPDISPATCH newValue) { static BYTE parms[] = VTS_DISPATCH; InvokeHelper(0x3c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue); } long CWMPControls::GetCurrentMarker() { long result; InvokeHelper(0x3d, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); return result; } void CWMPControls::SetCurrentMarker(long nNewValue) { static BYTE parms[] = VTS_I4; InvokeHelper(0x3d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, nNewValue); } void CWMPControls::playItem(LPDISPATCH pIWMPMedia) { static BYTE parms[] = VTS_DISPATCH; InvokeHelper(0x3f, DISPATCH_METHOD, VT_EMPTY, NULL, parms, pIWMPMedia); }