PlankFactoriesItemFactory

PlankFactoriesItemFactory — An item factory. Creates PlankItemsDockItems based on .dockitem files.

Synopsis

#define             PLANK_FACTORIES_TYPE_ITEM_FACTORY
PlankItemsDockItem * plank_factories_item_factory_make_item
                                                        (PlankFactoriesItemFactory *self,
                                                         GFile *file);
PlankItemsDockItem * plank_factories_item_factory_default_make_item
                                                        (PlankFactoriesItemFactory *self,
                                                         GFile *file,
                                                         const gchar *launcher);
gchar *             plank_factories_item_factory_get_launcher_from_dockitem
                                                        (PlankFactoriesItemFactory *self,
                                                         GFile *file);
void                plank_factories_item_factory_make_default_items
                                                        (PlankFactoriesItemFactory *self);
GFile *             plank_factories_item_factory_make_dock_item
                                                        (PlankFactoriesItemFactory *self,
                                                         const gchar *uri);
PlankFactoriesItemFactory * plank_factories_item_factory_new
                                                        (void);
struct              PlankFactoriesItemFactory;
struct              PlankFactoriesItemFactoryClass;

Object Hierarchy

  GObject
   +----PlankFactoriesItemFactory

Description

Details

PLANK_FACTORIES_TYPE_ITEM_FACTORY

#define PLANK_FACTORIES_TYPE_ITEM_FACTORY (plank_factories_item_factory_get_type ())

The type for PlankFactoriesItemFactory.


plank_factories_item_factory_make_item ()

PlankItemsDockItem * plank_factories_item_factory_make_item
                                                        (PlankFactoriesItemFactory *self,
                                                         GFile *file);

Creates a new PlankItemsDockItem from a .dockitem.

self :

the PlankFactoriesItemFactory instance

file :

 . the GFile of .dockitem file to parse. [in]

Returns :

the new PlankItemsDockItem created

plank_factories_item_factory_default_make_item ()

PlankItemsDockItem * plank_factories_item_factory_default_make_item
                                                        (PlankFactoriesItemFactory *self,
                                                         GFile *file,
                                                         const gchar *launcher);

Creates a new PlankItemsDockItem for a launcher parsed from a .dockitem.

self :

the PlankFactoriesItemFactory instance

file :

 . the GFile of .dockitem file that was parsed. [in]

launcher :

 . the launcher name from the .dockitem. [in]

Returns :

the new PlankItemsDockItem created

plank_factories_item_factory_get_launcher_from_dockitem ()

gchar *             plank_factories_item_factory_get_launcher_from_dockitem
                                                        (PlankFactoriesItemFactory *self,
                                                         GFile *file);

Parses a .dockitem to get the launcher from it.

self :

the PlankFactoriesItemFactory instance

file :

 . the GFile of .dockitem to parse. [in]

Returns :

the launcher from the .dockitem

plank_factories_item_factory_make_default_items ()

void                plank_factories_item_factory_make_default_items
                                                        (PlankFactoriesItemFactory *self);

Creates a bunch of default .dockitem's.

self :

the PlankFactoriesItemFactory instance

plank_factories_item_factory_make_dock_item ()

GFile *             plank_factories_item_factory_make_dock_item
                                                        (PlankFactoriesItemFactory *self,
                                                         const gchar *uri);

Creates a new .dockitem for a uri.

self :

the PlankFactoriesItemFactory instance

uri :

 . the uri or path to create a .dockitem for. [in]

Returns :

the new GFile of the new .dockitem created

plank_factories_item_factory_new ()

PlankFactoriesItemFactory * plank_factories_item_factory_new
                                                        (void);

struct PlankFactoriesItemFactory

struct PlankFactoriesItemFactory;

An item factory. Creates PlankItemsDockItems based on .dockitem files.


struct PlankFactoriesItemFactoryClass

struct PlankFactoriesItemFactoryClass {
	GObjectClass parent_class;
	PlankItemsDockItem* (*make_item) (PlankFactoriesItemFactory* self, GFile* file);
};

The class structure for PLANK_FACTORIES_TYPE_ITEM_FACTORY. All the fields in this structure are private and should never be accessed directly.

GObjectClass parent_class;

the parent class structure

make_item ()

virtual method called by plank_factories_item_factory_make_item()