aboutsummaryrefslogblamecommitdiffstats
path: root/addressbook/backend/pas/pas-book-factory.h
blob: 22d4a87b3ec9c345b7e8d8869c3ec4b9d7672d3b (plain) (tree)
1
2
3
4
5
6
7
8
9
  
                               

   
                                 

                                
                            
 







                                                            
                                              



                                    
                                       



                                                          

                      



                                                                                         
                                                                                                  
 

                                                                                          
                                                                                                           











                                                                                                            
/*
 * Copyright 2000, Ximian, Inc.
 */

#include <bonobo/bonobo-object.h>
#include <libgnome/gnome-defs.h>

#include <pas/pas-backend.h>

#ifndef __PAS_BOOK_FACTORY_H__
#define __PAS_BOOK_FACTORY_H__

BEGIN_GNOME_DECLS

typedef struct _PASBookFactoryPrivate PASBookFactoryPrivate;

typedef struct {
    BonoboObject            parent_object;
    PASBookFactoryPrivate *priv;
} PASBookFactory;

typedef struct {
    BonoboObjectClass parent_class;

    /* Notification signals */

    void (* last_book_gone) (PASBookFactory *factory);
} PASBookFactoryClass;

PASBookFactory *pas_book_factory_new              (void);

void            pas_book_factory_register_backend (PASBookFactory               *factory,
                           const char                   *proto,
                           PASBackendFactoryFn           backend_factory);

int             pas_book_factory_get_n_backends   (PASBookFactory               *factory);

gboolean        pas_book_factory_activate         (PASBookFactory               *factory, const char *iid);

GtkType         pas_book_factory_get_type (void);

#define PAS_BOOK_FACTORY_TYPE        (pas_book_factory_get_type ())
#define PAS_BOOK_FACTORY(o)          (GTK_CHECK_CAST ((o), PAS_BOOK_FACTORY_TYPE, PASBookFactory))
#define PAS_BOOK_FACTORY_CLASS(k)    (GTK_CHECK_CLASS_CAST((k), PAS_BOOK_FACTORY_TYPE, PASBookFactoryClass))
#define PAS_IS_BOOK_FACTORY(o)       (GTK_CHECK_TYPE ((o), PAS_BOOK_FACTORY_TYPE))
#define PAS_IS_BOOK_FACTORY_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), PAS_BOOK_FACTORY_TYPE))

END_GNOME_DECLS

#endif /* ! __PAS_BOOK_FACTORY_H__ */