## CamelDiscoStore

CamelDiscoStore

## Synopsis

    struct              CamelDiscoStore;
    enum                CamelDiscoStoreStatus;
    CamelDiscoStoreStatus camel_disco_store_status          (CamelDiscoStore *store);
    gboolean            camel_disco_store_set_status        (CamelDiscoStore *store,
                                                             CamelDiscoStoreStatus status,
                                                             GCancellable *cancellable,
                                                             GError **error);
    gboolean            camel_disco_store_can_work_offline  (CamelDiscoStore *store);
    gboolean            camel_disco_store_check_online      (CamelDiscoStore *store,
                                                             GError **error);
    void                camel_disco_store_prepare_for_offline
                                                            (CamelDiscoStore *store,
                                                             GCancellable *cancellable,
                                                             GError **error);

## Object Hierarchy

      GObject
       +----CamelObject
             +----CamelService
                   +----CamelStore
                         +----CamelDiscoStore

## Implemented Interfaces

CamelDiscoStore implements GInitable.

## Description

## Details

### struct CamelDiscoStore

    struct CamelDiscoStore;

### Warning

`CamelDiscoStore` is deprecated and should not be used in newly-written code.

### enum CamelDiscoStoreStatus

    typedef enum {
    	CAMEL_DISCO_STORE_ONLINE,
    	CAMEL_DISCO_STORE_OFFLINE,
    	CAMEL_DISCO_STORE_RESYNCING
    } CamelDiscoStoreStatus;

### Warning

`CamelDiscoStoreStatus` is deprecated and should not be used in newly-written code.

### camel_disco_store_status ()

    CamelDiscoStoreStatus camel_disco_store_status          (CamelDiscoStore *store);

### Warning

`camel_disco_store_status` is deprecated and should not be used in newly-written code.

`store` : | a disconnectable store
Returns : | the current online/offline status of `store`.

### camel_disco_store_set_status ()

    gboolean            camel_disco_store_set_status        (CamelDiscoStore *store,
                                                             CamelDiscoStoreStatus status,
                                                             GCancellable *cancellable,
                                                             GError **error);

### Warning

`camel_disco_store_set_status` is deprecated and should not be used in newly-written code.

Sets `store` to `status`. If an error occurrs and the status cannot be set to `status`, `error` will be set.

`store` : | a disconnectable store
`status` : | the new status
`cancellable` : | optional GCancellable method, or `NULL`
`error` : | return location for a GError, or `NULL`

### camel_disco_store_can_work_offline ()

    gboolean            camel_disco_store_can_work_offline  (CamelDiscoStore *store);

### Warning

`camel_disco_store_can_work_offline` is deprecated and should not be used in newly-written code.

`store` : | a disconnectable store
Returns : | whether or not `store` can be used offline. (Will be `FALSE` if the store is not caching data to local disk, for example.)

### camel_disco_store_check_online ()

    gboolean            camel_disco_store_check_online      (CamelDiscoStore *store,
                                                             GError **error);

### Warning

`camel_disco_store_check_online` is deprecated and should not be used in newly-written code.

This checks that `store` is online, and sets `ex` if it is not. This can be used as a simple way to set a generic error message in `ex` for operations that won't work offline.

`store` : | a disconnectable store
`error` : | return location for a GError, or `NULL`
Returns : | whether or not `store` is online.

### camel_disco_store_prepare_for_offline ()

    void                camel_disco_store_prepare_for_offline
                                                            (CamelDiscoStore *store,
                                                             GCancellable *cancellable,
                                                             GError **error);

### Warning

`camel_disco_store_prepare_for_offline` is deprecated and should not be used in newly-written code.