2011-05-23 07:16:09 +02:00
|
|
|
/* -*-mode: c; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-*/
|
|
|
|
|
2010-08-24 23:57:16 +02:00
|
|
|
/*
|
2011-05-14 17:07:51 +02:00
|
|
|
** Copyright (C) 2008-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
2010-08-24 23:57:16 +02:00
|
|
|
**
|
|
|
|
** This program is free software; you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation; either version 3 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** This program is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with this program; if not, write to the Free Software Foundation,
|
|
|
|
** Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
**
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MU_MSG_PRIV_H__
|
|
|
|
#define __MU_MSG_PRIV_H__
|
|
|
|
|
|
|
|
#include <gmime/gmime.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2011-05-23 07:16:09 +02:00
|
|
|
#include <mu-msg.h>
|
|
|
|
#include <mu-msg-file.h>
|
|
|
|
#include <mu-msg-doc.h>
|
|
|
|
#include <mu-msg-cache.h>
|
2010-08-24 23:57:16 +02:00
|
|
|
|
2011-01-04 22:19:03 +01:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2010-08-24 23:57:16 +02:00
|
|
|
|
2011-05-09 01:58:33 +02:00
|
|
|
struct _MuMsgFile {
|
2011-05-14 17:07:51 +02:00
|
|
|
GMimeMessage *_mime_msg;
|
|
|
|
time_t _timestamp;
|
|
|
|
size_t _size;
|
2011-05-15 10:06:55 +02:00
|
|
|
char _path [PATH_MAX + 1];
|
2011-05-14 17:07:51 +02:00
|
|
|
char _maildir [PATH_MAX + 1];
|
2011-05-09 01:58:33 +02:00
|
|
|
};
|
2010-08-24 23:57:16 +02:00
|
|
|
|
2011-04-30 12:50:56 +02:00
|
|
|
|
2011-05-14 17:07:51 +02:00
|
|
|
/* we put the the MuMsg definition in this separate -priv file, so we
|
|
|
|
* can split the mu_msg implementations over separate files */
|
2011-05-09 01:58:33 +02:00
|
|
|
struct _MuMsg {
|
2011-05-14 17:07:51 +02:00
|
|
|
|
2011-05-09 01:58:33 +02:00
|
|
|
guint _refcount;
|
2011-05-15 10:06:55 +02:00
|
|
|
|
|
|
|
/* our two backend */
|
2011-05-17 22:20:05 +02:00
|
|
|
MuMsgFile *_file; /* based on GMime, ie. a file on disc */
|
|
|
|
MuMsgDoc *_doc; /* based on Xapian::Document */
|
2011-05-15 10:06:55 +02:00
|
|
|
|
2011-05-14 17:07:51 +02:00
|
|
|
MuMsgCache *_cache;
|
2010-08-24 23:57:16 +02:00
|
|
|
};
|
|
|
|
|
2011-01-04 22:19:03 +01:00
|
|
|
G_END_DECLS
|
|
|
|
|
2010-08-24 23:57:16 +02:00
|
|
|
#endif /*__MU_MSG_PRIV_H__*/
|