entrance_user.h File Reference

Struct Definitions and shared function declarations. More...


Data Structures

struct  _Entrance_User
 This contains all of the information we keep about users. More...

Typedefs

typedef _Entrance_User Entrance_User

Functions

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

Struct Definitions and shared function declarations.


Typedef Documentation

typedef struct _Entrance_User Entrance_User


Function Documentation

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"