libzypp  17.16.0
ShutdownLock_p.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
13 #ifndef ZYPP_SHUTDOWNLOCK_P_H_INCLUDED
14 #define ZYPP_SHUTDOWNLOCK_P_H_INCLUDED
15 
16 #include <string>
17 
18 #include "zypp/APIConfig.h"
19 #include "zypp/base/PtrTypes.h"
20 
21 namespace zypp
22 {
23 
24 class ExternalProgramWithSeperatePgid;
25 
32 {
33 public:
34  ShutdownLock( const std::string &reason );
35  ~ShutdownLock();
36 
37 private:
38  shared_ptr<ExternalProgramWithSeperatePgid> _prog;
39 
40 };
41 
42 }
43 
44 
45 #endif
#define ZYPP_LOCAL
Definition: APIConfig.h:48
Attempts to create a lock to prevent the system from going into hibernate/shutdown.
Provides API related macros.
shared_ptr< ExternalProgramWithSeperatePgid > _prog
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1