nntpgrab_plugin_base.h

Go to the documentation of this file.
00001 /*
00002  Copyright (C) 2005-2009 Erik van Pienbroek
00003 
00004  This program is free software; you can redistribute it and/or modify
00005  it under the terms of the GNU General Public License as published by
00006  the Free Software Foundation; either version 2 of the License, or
00007  (at your option) any later version.
00008 
00009  This program is distributed in the hope that it will be useful,
00010  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00012  GNU General Public License for more details.
00013 
00014  You should have received a copy of the GNU General Public License
00015  along with this program; if not, write to the Free Software
00016  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00017 */
00018 
00019 #ifndef _NNTPGRAB_PLUGIN_BASE_H_
00020 #define _NNTPGRAB_PLUGIN_BASE_H_
00021 
00022 #include 
00023 
00024 #include "nntpgrab_types.h"
00025 
00026 G_BEGIN_DECLS
00027 
00028 #define NNTPGRAB_PLUGIN_API_VERSION 20090429
00029 
00030 typedef enum {
00031     NNTP_ERROR_NONE,
00032     NNTP_ERROR_HOST_NOT_FOUND,
00033     NNTP_ERROR_SSL_INITIALISE,
00034     NNTP_ERROR_CONNECTION_REFUSED,
00035     NNTP_ERROR_CONNECTION_TIMEOUT,
00036     NNTP_ERROR_READ,
00037     NNTP_ERROR_WRITE,
00038     NNTP_ERROR_INVALID_MSG,
00039     NNTP_ERROR_LOGIN_FAILURE,
00040     NNTP_ERROR_TOO_MANY_CONNECTIONS,
00041     NNTP_ERROR_PART_NOT_AVAILABLE,
00042     NNTP_ERROR_NO_SUCH_GROUP,
00043     NNTP_ERROR_UNABLE_TO_SAVE_PART,
00044 } NNTPGrabErrCode;
00045 
00046 typedef enum {
00047     DECODER_RESULT_COMPLETE,
00048     DECODER_RESULT_INCOMPLETE,
00049     DECODER_RESULT_NO_PARTS_AVAIL,
00050     DECODER_RESULT_ERROR
00051 } NNTPGrabDecoderRes;
00052 
00053 G_END_DECLS
00054 
00055 #endif /* _NNTPGRAB_PLUGIN_BASE_H_ */

Generated on Thu May 21 21:25:05 2009 for NNTPGrab by  1.5.4