aboutsummaryrefslogblamecommitdiffstats
path: root/addressbook/gui/component/select-names/e-select-names-manager.h
blob: ba7ed58d08d1a7f0880340ee808ef5153d8aeb79 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                                           
                                    
  
                                  




                                    
                  

                          
                          
                           











                                                                                                                                      

                        
                       
 
                            





                                    

                                                                                            

                                                                                  

                                                                                            
                                                                                            
                                                                               
                                                                                            
                                                                               
 
     
                   
                                                                                            
                                                                               
      

                                                      
                                                                     

                                           
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * Authors:
 *   Chris Lahey <clahey@ximian.com>
 *
 * Copyright (C) 2000 Ximian, Inc.
 */

#ifndef __E_SELECT_NAMES_MANAGER_H__
#define __E_SELECT_NAMES_MANAGER_H__

#include <stdio.h>
#include <time.h>
#include <gtk/gtkobject.h>
#include <e-util/e-list.h>
#include "e-select-names.h"

#define E_TYPE_SELECT_NAMES_MANAGER            (e_select_names_manager_get_type ())
#define E_SELECT_NAMES_MANAGER(obj)            (GTK_CHECK_CAST ((obj), E_TYPE_SELECT_NAMES_MANAGER, ESelectNamesManager))
#define E_SELECT_NAMES_MANAGER_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_SELECT_NAMES_MANAGER, ESelectNamesManagerClass))
#define E_IS_SELECT_NAMES_MANAGER(obj)         (GTK_CHECK_TYPE ((obj), E_TYPE_SELECT_NAMES_MANAGER))
#define E_IS_SELECT_NAMES_MANAGER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), E_TYPE_SELECT_NAMES_MANAGER))

typedef struct _ESelectNamesManager ESelectNamesManager;
typedef struct _ESelectNamesManagerClass ESelectNamesManagerClass;

struct _ESelectNamesManager {
    GtkObject object;
    
    EList *sections;
    EList *entries;

    ESelectNames *names;
};

struct _ESelectNamesManagerClass {
    GtkObjectClass parent_class;
};

ESelectNamesManager *e_select_names_manager_new               (void);
void                 e_select_names_manager_add_section       (ESelectNamesManager *manager,
                                   const char *id,
                                   const char *title);
ESelectNamesModel   *e_select_names_manager_get_source        (ESelectNamesManager *manager,
                                   const char *id);
GtkWidget           *e_select_names_manager_create_entry      (ESelectNamesManager *manager,
                                   const char *id);
void                 e_select_names_manager_activate_dialog   (ESelectNamesManager *manager,
                                   const char *id);

#if 0
/* Of type ECard */
EList               *e_select_names_manager_get_cards         (ESelectNamesManager *manager,
                                   const char *id);
#endif

/* Standard Gtk function */               
GtkType              e_select_names_manager_get_type          (void);

#endif /* ! __E_SELECT_NAMES_MANAGER_H__ */