Guest User

Untitled

a guest
May 17th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 1.75 KB | None | 0 0
  1.  
  2. [DBus (name="org.freedesktop.Accounts")]
  3. public interface Accounts{
  4.     public abstract ObjectPath create_user (string name, string fullname, int32 account_type);
  5.     public abstract void delete_user (int64 id, bool remove_files);
  6.     public abstract ObjectPath find_user_by_id (int64 id);
  7.     public abstract ObjectPath [] list_cached_users ();
  8.    
  9.     public abstract string daemon_version {get; set;}
  10.    
  11.     public signal ObjectPath user_added ();
  12.     public signal ObjectPath user_deleted ();
  13. }
  14. [DBus (name="org.freedesktop.Accounts")]
  15. public interface User{
  16.     public abstract void set_account_type    (int32 account_type); //0=standard, 1=admin
  17.     public abstract void set_automatic_login (bool enabled);
  18.     public abstract void set_email           (string email);
  19.     public abstract void set_home_directory  (string homedir);
  20.     public abstract void set_icon_file       (string filename);
  21.     public abstract void set_language        (string language);
  22.     public abstract void set_location        (bool locked);
  23.     public abstract void set_password_mode   (int32 mode);        //0=regular, 1=set_at_login, 2=none
  24.     public abstract void set_real_name       (string name);
  25.     public abstract void set_shell           (string shell);
  26.     public abstract void set_user_name       (string name);
  27.     public abstract void set_x_session       (string x_session);
  28.    
  29.     public bool automatic_login;
  30.     public bool locked;
  31.     public bool system_account;
  32.     public int32 account_type;
  33.     public int32 password_mode;
  34.     public string email;
  35.     public string home_directory;
  36.     public string icon_file;
  37.     public string language;
  38.     public string location;
  39.     public string real_name;
  40.     public string shell;
  41.     public string x_session;
  42.     public uint64 login_frequency;
  43.     public uint64 uid;
  44.    
  45.     public signal void changed ();
  46. }
Add Comment
Please, Sign In to add comment