| Camel Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
CamelDiscoStore; enum CamelDiscoStoreStatus; CamelDiscoStoreStatus camel_disco_store_status (CamelDiscoStore *store); void camel_disco_store_set_status (CamelDiscoStore *store,CamelDiscoStoreStatus status,CamelException *ex); gboolean camel_disco_store_can_work_offline (CamelDiscoStore *store); gboolean camel_disco_store_check_online (CamelDiscoStore *store,CamelException *ex); void camel_disco_store_prepare_for_offline (CamelDiscoStore *store,CamelException *ex);
typedef struct _CamelDiscoStore CamelDiscoStore;
CamelDiscoStore is deprecated and should not be used in newly-written code.
typedef enum {
CAMEL_DISCO_STORE_ONLINE,
CAMEL_DISCO_STORE_OFFLINE,
CAMEL_DISCO_STORE_RESYNCING
} CamelDiscoStoreStatus;
CamelDiscoStoreStatus is deprecated and should not be used in newly-written code.
CamelDiscoStoreStatus camel_disco_store_status (CamelDiscoStore *store);
camel_disco_store_status is deprecated and should not be used in newly-written code.
|
a disconnectable store |
Returns : |
the current online/offline status of store.
|
void camel_disco_store_set_status (CamelDiscoStore *store,CamelDiscoStoreStatus status,CamelException *ex);
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, ex will be set.
|
a disconnectable store |
|
the new status |
|
a CamelException |
gboolean camel_disco_store_can_work_offline (CamelDiscoStore *store);
camel_disco_store_can_work_offline is deprecated and should not be used in newly-written code.
|
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.)
|
gboolean camel_disco_store_check_online (CamelDiscoStore *store,CamelException *ex);
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.
|
a disconnectable store |
|
a CamelException |
Returns : |
whether or not store is online.
|
void camel_disco_store_prepare_for_offline (CamelDiscoStore *store,CamelException *ex);
camel_disco_store_prepare_for_offline is deprecated and should not be used in newly-written code.
|
|
|