## kolab-backend-types kolab-backend-types — Common Kolab backend types |

## Stability Level

Unstable, unless otherwise indicated

## Synopsis

    enum                KolabMailAccessOpmodeID;
    struct              KolabMailMimeBuilderHeaderInfo;
    enum                KolabObjectCacheLocation;
    enum                KolabObjectCacheStatus;

## Description

## Details

### enum KolabMailAccessOpmodeID

    typedef enum {
    	KOLAB_MAIL_ACCESS_OPMODE_INVAL = 0, /* MUST start with 0 */
    	KOLAB_MAIL_ACCESS_OPMODE_SHUTDOWN,
    	KOLAB_MAIL_ACCESS_OPMODE_NEW,
    	KOLAB_MAIL_ACCESS_OPMODE_CONFIGURED,
    	KOLAB_MAIL_ACCESS_OPMODE_OFFLINE,
    	KOLAB_MAIL_ACCESS_OPMODE_ONLINE,
    	KOLAB_MAIL_ACCESS_LAST_OPMODE
    } KolabMailAccessOpmodeID;

### struct KolabMailMimeBuilderHeaderInfo

    struct KolabMailMimeBuilderHeaderInfo {
    	gchar *kolab_uid;
    	gchar *from_name;
    	gchar *from_addr;
    };

### enum KolabObjectCacheLocation

    typedef enum {
    	KOLAB_OBJECT_CACHE_LOCATION_NONE = 0,
    	KOLAB_OBJECT_CACHE_LOCATION_IMAP = 1 << 0,
    	KOLAB_OBJECT_CACHE_LOCATION_SIDE = 1 << 1,

    	KOLAB_OBJECT_CACHE_LOCATION_INVAL       = 1 << 8
    } KolabObjectCacheLocation;

### enum KolabObjectCacheStatus

    typedef enum {
    	KOLAB_OBJECT_CACHE_STATUS_NONE		= 0,
    	KOLAB_OBJECT_CACHE_STATUS_DIRTY		= 1 << 0,
    	KOLAB_OBJECT_CACHE_STATUS_DELETED       = 1 << 1,
    	KOLAB_OBJECT_CACHE_STATUS_CHANGED       = 1 << 2,

    	KOLAB_OBJECT_CACHE_STATUS_INVAL		= 1 << 8
    } KolabObjectCacheStatus;