~thalexander/unity/update-fsf-address

« back to all changes in this revision

Viewing changes to lockscreen/KylinLockScreenShield.h

  • Committer: Marco Trevisan (Treviño)
  • Date: 2016-03-07 18:51:47 UTC
  • mfrom: (4080 unity)
  • mto: This revision was merged to the branch mainline in revision 4085.
  • Revision ID: mail@3v1n0.net-20160307185147-0p1m89up4tqfb6w1
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
 
2
/*
 
3
* Copyright (C) 2015 Canonical Ltd
 
4
*               2015, National University of Defense Technology(NUDT) & Kylin Ltd
 
5
*
 
6
* This program is free software: you can redistribute it and/or modify
 
7
* it under the terms of the GNU General Public License version 3 as
 
8
* published by the Free Software Foundation.
 
9
*
 
10
* This program is distributed in the hope that it will be useful,
 
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
* GNU General Public License for more details.
 
14
*
 
15
* You should have received a copy of the GNU General Public License
 
16
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
*
 
18
* Authored by: Marco Trevisan <marco.trevisan@canonical.com>
 
19
*              handsome_feng <jianfengli@ubuntukylin.com>
 
20
*/
 
21
 
 
22
#ifndef UNITY_KYLIN_LOCKSCREEN_SHIELD_H
 
23
#define UNITY_KYLIN_LOCKSCREEN_SHIELD_H
 
24
 
 
25
#include <UnityCore/ConnectionManager.h>
 
26
#include <UnityCore/GLibSource.h>
 
27
#include "LockScreenBaseShield.h"
 
28
 
 
29
namespace unity
 
30
{
 
31
namespace lockscreen
 
32
{
 
33
 
 
34
class AbstractUserPromptView;
 
35
 
 
36
class KylinShield : public BaseShield
 
37
{
 
38
public:
 
39
  KylinShield(session::Manager::Ptr const&,
 
40
         Accelerators::Ptr const&,
 
41
         nux::ObjectPtr<AbstractUserPromptView> const&,
 
42
         int monitor, bool is_primary);
 
43
 
 
44
protected:
 
45
  nux::Area* FindKeyFocusArea(unsigned int, unsigned long, unsigned long) override;
 
46
 
 
47
private:
 
48
  void ShowPrimaryView() override;
 
49
};
 
50
 
 
51
}
 
52
}
 
53
 
 
54
#endif