entrance_user.c File Reference

Variables and Data relating to an instance of a user in entrance. More...


Functions

static Evas_Object * _entrance_user_icon_load (Evas_Object *o, char *file)
 _entrance_user_icon_load : It says this is the filename, gimme an evas object for it, I don't care what type.
void user_selected_cb (void *data, Evas_Object *o, const char *emission, const char *source)
 Executed when a Session is selected.
void user_unselected_cb (void *data, Evas_Object *o, const char *emission, const char *source)
 Executed when a Session is unselected.
Entrance_Userentrance_user_new (char *user, char *icon, char *session)
 entrance_user_new - given a user, icon, and session, create a new Entrance_User instance.
void entrance_user_auto_login_set (Entrance_User *e, int allow)
 entrance_user_auto_login_set : allow this user to auto login, currently not used
void entrance_user_free (Entrance_User *e)
 entrance_user_free: free this Entrance_User
Evas_Object * entrance_user_edje_get (Entrance_User *e, Evas_Object *edje, const char *file)
 entrance_user_edje_get : get the Evas_Object(edje||image) that is specified in config db.

Detailed Description

Variables and Data relating to an instance of a user in entrance.


Function Documentation

static Evas_Object * _entrance_user_icon_load ( Evas_Object *  o,
char *  file 
) [static]

_entrance_user_icon_load : It says this is the filename, gimme an evas object for it, I don't care what type.

:)

Parameters:
o - another object in the Canvas
file - the filename on disk, might be an edje, might be an image
Returns:
NULL on failure, a valid Evas_Object on success

void entrance_user_auto_login_set ( Entrance_User e,
int  allow 
)

entrance_user_auto_login_set : allow this user to auto login, currently not used

Parameters:
e - the Entrance_User the request is for
allow - true(1) to allow, false(0) to disallow

Evas_Object* entrance_user_edje_get ( Entrance_User e,
Evas_Object *  edje,
const char *  file 
)

entrance_user_edje_get : get the Evas_Object(edje||image) that is specified in config db.

Their "entrance.user.avatar"

Parameters:
e - the Entrance_User to get the edje for
edje - a pointer to the main edje in entrance
Returns:
NULL on failure, a valid Evas_Object on success

FIXME: perhaps go so far as to do Gecos type stuff

void entrance_user_free ( Entrance_User e  ) 

entrance_user_free: free this Entrance_User

Parameters:
e - the Entrance_User to free

Entrance_User* entrance_user_new ( char *  user,
char *  icon,
char *  session 
)

entrance_user_new - given a user, icon, and session, create a new Entrance_User instance.

We don't copy the pointers here, simply use them, it allows for us to pass in NULL, and easily use ecore_config supplied data w/o having to free it.

Parameters:
user - the user's user id on the system
icon - the user's "face" icon, an edje or eet
session - the key into the session hash that this user considers their "default"

void user_selected_cb ( void *  data,
Evas_Object *  o,
const char *  emission,
const char *  source 
)

Executed when a Session is selected.

Parameters:
data - the data passed when the callback was added
o - the evas object(Edje) that created the signal
emission - the signal "type" that was emitted
source - the signal originated from this "part" Attempt to set the Part named "entrance.time" to the results of localtime. This way the interval is configurable via a program in the theme and not statically bound to a value.

void user_unselected_cb ( void *  data,
Evas_Object *  o,
const char *  emission,
const char *  source 
)

Executed when a Session is unselected.

Parameters:
data - the data passed when the callback was added
o - the evas object(Edje) that created the signal
emission - the signal "type" that was emitted
source - the signal originated from this "part" Set the current EntranceFace part back to nothing