#include <ws2tcpip.h>
#endif
+#define CAMEL_POP3_STORE_GET_PRIVATE(obj) \
+ (G_TYPE_INSTANCE_GET_PRIVATE \
+ ((obj), CAMEL_TYPE_POP3_STORE, CamelPOP3StorePrivate))
+
/* Specified in RFC 1939 */
#define POP3_PORT 110
#define POP3S_PORT 995
/* defines the length of the server error message we can display in the error dialog */
#define POP3_ERROR_SIZE_LIMIT 60
+struct _CamelPOP3StorePrivate {
+ gint placeholder;
+};
+
enum {
PROP_0,
PROP_DEFAULT_PORT,
CamelServiceClass *service_class;
CamelStoreClass *store_class;
+ g_type_class_add_private (class, sizeof (CamelPOP3StorePrivate));
+
object_class = G_OBJECT_CLASS (class);
object_class->set_property = pop3_store_set_property;
object_class->get_property = pop3_store_get_property;
static void
camel_pop3_store_init (CamelPOP3Store *pop3_store)
{
+ pop3_store->priv = CAMEL_POP3_STORE_GET_PRIVATE (pop3_store);
}
/**
typedef struct _CamelPOP3Store CamelPOP3Store;
typedef struct _CamelPOP3StoreClass CamelPOP3StoreClass;
+typedef struct _CamelPOP3StorePrivate CamelPOP3StorePrivate;
struct _CamelPOP3Store {
CamelStore parent;
+ CamelPOP3StorePrivate *priv;
CamelPOP3Engine *engine; /* pop processing engine */
CamelStoreClass parent_class;
};
-GType camel_pop3_store_get_type (void);
-
-/* public methods */
-void camel_pop3_store_expunge (CamelPOP3Store *store, GError **error);
-
-/* support functions */
-enum { CAMEL_POP3_OK, CAMEL_POP3_ERR, CAMEL_POP3_FAIL };
-gint camel_pop3_command (CamelPOP3Store *store, gchar **ret, GError **error, gchar *fmt, ...);
-gchar *camel_pop3_command_get_additional_data (CamelPOP3Store *store, gint total, GError **error);
+GType camel_pop3_store_get_type (void);
+void camel_pop3_store_expunge (CamelPOP3Store *store,
+ GError **error);
+gint camel_pop3_command (CamelPOP3Store *store,
+ gchar **ret,
+ GError **error,
+ gchar *fmt,
+ ...);
+gchar * camel_pop3_command_get_additional_data
+ (CamelPOP3Store *store,
+ gint total,
+ GError **error);
G_END_DECLS