~tatokis/unity/gcc-72-errors

« back to all changes in this revision

Viewing changes to lockscreen/KylinUserPromptView.h

  • Committer: Bileto Bot
  • Author(s): Andrea Azzarone
  • Date: 2017-09-25 16:03:52 UTC
  • mfrom: (4253.3.3 fix-missing-entry-lockscreen)
  • Revision ID: ci-train-bot@canonical.com-20170925160352-kqd3v7i3wdwhixjn
Refactor the way UserAuthenticator is created and passed around. Handle failures to create new threads and fallback to a "Switch to greeter..." button in case of failure. (LP: #1311316)

Approved by: Marco Trevisan (Treviño)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
class KylinUserPromptView : public AbstractUserPromptView
45
45
{
46
46
public:
47
 
  KylinUserPromptView(session::Manager::Ptr const& session_manager);
 
47
  KylinUserPromptView(session::Manager::Ptr const& session_manager,
 
48
                      UserAuthenticator::Ptr const& user_authenticator);
48
49
 
49
50
  nux::View* focus_view();
50
51
 
62
63
  nux::ObjectPtr<nux::BaseTexture> LoadUserIcon(std::string const& icon_file, int icon_size);
63
64
 
64
65
private:
65
 
  session::Manager::Ptr session_manager_;
66
 
  UserAuthenticatorPam user_authenticator_;
67
66
  StaticCairoText* username_;
68
67
  nux::VLayout* msg_layout_;
69
68
  nux::VLayout* prompt_layout_;