Back to index

citadel  8.12
extnotify.h
Go to the documentation of this file.
00001 /*
00002  * File:   extnotify.h
00003  * Author: Mathew McBride <matt@mcbridematt.dhs.org> / <matt@comalies>
00004  * Copyright (c) 2008-2009
00005  *
00006  *  This program is open source software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License version 3.
00008  *  
00009  *  
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  
00017  *  
00018  *  
00019  */
00020 
00021 #include "../eventclient/serv_curl.h"
00022 #define PAGER_CONFIG_MESSAGE "__ Push email settings __"
00023 #define FUNAMBOL_CONFIG_TEXT "funambol"
00024 #define PAGER_CONFIG_SYSTEM  "textmessage"
00025 #define PAGER_CONFIG_HTTP  "httpmessage"
00026 typedef enum _eNotifyType {
00027        eNone,
00028        eFunambol,
00029        eHttpMessages,
00030        eTextMessage
00031 }eNotifyType;
00032 
00033 
00034 #define FUNAMBOL_WS "/funambol/services/admin"
00035 
00036 typedef struct _NotifyContext {
00037        StrBuf **NotifyHostList;
00038        int nNotifyHosts;
00039        HashList *NotifyErrors;
00040        AsyncIO IO;
00041 } NotifyContext;
00042 
00043 int notify_http_server(char *remoteurl,
00044                      const char* template,
00045                      long tlen,
00046                      char *user,
00047                      char *msgid,
00048                      long MsgNum,
00049                      NotifyContext *Ctx);
00050 
00051 void ExtNotify_PutErrorMessage(NotifyContext *Ctx, StrBuf *ErrMsg);
00052