Music Hub  ..
A session-wide music playback service
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
apparmor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2014 Canonical Ltd
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Author: Jim Hodapp <jim.hodapp@canonical.com>
17  */
18 
19 #ifndef APPARMOR_H_DBUS_
20 #define APPARMOR_H_DBUS_
21 
22 #include <string>
23 #include <chrono>
24 
25 namespace core
26 {
27 
28 struct Apparmor
29 {
30  static std::string& name()
31  {
32  static std::string s = "org.freedesktop.DBus";
33  return s;
34  }
35 
37  {
38  static std::string name()
39  {
40  static std::string s = "GetConnectionAppArmorSecurityContext";
41  return s;
42  }
43 
44  static const std::chrono::milliseconds default_timeout() { return std::chrono::seconds{1}; }
45 
47  };
48 };
49 }
50 
51 #endif
Definition: player.h:29
static const std::chrono::milliseconds default_timeout()
Definition: apparmor.h:44
static std::string & name()
Definition: apparmor.h:30