Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Moved the AFBClient to singleton
[staging/windowmanager.git]
/
AFBClient.h
diff --git
a/AFBClient.h
b/AFBClient.h
index
fa88663
..
1005432
100644
(file)
--- a/
AFBClient.h
+++ b/
AFBClient.h
@@
-15,8
+15,18
@@
extern "C"
class AFBClient
{
class AFBClient
{
+ explicit AFBClient();
+ AFBClient(const AFBClient& that) = delete;
+ AFBClient& operator=(AFBClient const&);
+ virtual~AFBClient();
+
public:
public:
- AFBClient();
+ static AFBClient &instance()
+ {
+ static AFBClient obj;
+ return obj;
+ }
+
bool init();
void requestSurface(const char *label);
void activateSurface(const char *label);
bool init();
void requestSurface(const char *label);
void activateSurface(const char *label);