~tatokis/unity/gcc-72-errors

« back to all changes in this revision

Viewing changes to lockscreen/LockScreenPromptFactory.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:
22
22
 
23
23
#include <NuxCore/NuxCore.h>
24
24
#include "UnityCore/SessionManager.h"
 
25
#include "UserAuthenticator.h"
25
26
 
26
27
namespace unity
27
28
{
33
34
 
34
35
struct PromptFactory
35
36
{
36
 
  static nux::ObjectPtr<AbstractUserPromptView> CreatePrompt(session::Manager::Ptr const&);
 
37
  static nux::ObjectPtr<AbstractUserPromptView> CreatePrompt(session::Manager::Ptr const&,
 
38
                                                             UserAuthenticator::Ptr const&);
37
39
};
38
40
 
39
41
}