Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CommonExchangeDaemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jaronem
CommonExchangeDaemon
Commits
38841cd5
Commit
38841cd5
authored
3 years ago
by
Jaron Emmenegger
Browse files
Options
Downloads
Patches
Plain Diff
Implement abstract API interface
parent
0a4b1edf
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
abstractapi.cc
+17
-0
17 additions, 0 deletions
abstractapi.cc
abstractapi.h
+29
-0
29 additions, 0 deletions
abstractapi.h
ceaapp.cc
+6
-0
6 additions, 0 deletions
ceaapp.cc
ceaapp.h
+14
-0
14 additions, 0 deletions
ceaapp.h
commonexchangeapi.pro
+6
-0
6 additions, 0 deletions
commonexchangeapi.pro
with
72 additions
and
0 deletions
abstractapi.cc
0 → 100644
+
17
−
0
View file @
38841cd5
#include
"abstractapi.h"
//-------------------------------------------------------------------------------------------------
AbstractApi
::
AbstractApi
()
:
mState
(
None
)
{
}
//-------------------------------------------------------------------------------------------------
void
AbstractApi
::
setState
(
AbstractApi
::
State
s
)
{
Q_ASSERT
(
s
!=
mState
);
mState
=
s
;
emit
stateChanged
(
mState
);
}
This diff is collapsed.
Click to expand it.
abstractapi.h
0 → 100644
+
29
−
0
View file @
38841cd5
#ifndef ABSTRACTAPI_H
#define ABSTRACTAPI_H
#include
<QObject>
class
AbstractApi
:
public
QObject
{
public:
enum
State
{
None
,
Starting
,
Running
};
AbstractApi
();
void
init
()
=
0
;
signals
:
void
stateChanged
(
State
s
);
protected
:
void
setState
(
State
s
);
private
:
State
mState
;
};
#endif // ABSTRACTAPI_H
This diff is collapsed.
Click to expand it.
ceaapp.cc
0 → 100644
+
6
−
0
View file @
38841cd5
#include
"ceaapp.h"
CeaApp
::
CeaApp
()
{
}
This diff is collapsed.
Click to expand it.
ceaapp.h
0 → 100644
+
14
−
0
View file @
38841cd5
#ifndef CEAAPP_H
#define CEAAPP_H
#include
<QObject>
class
CeaApp
:
public
QObject
{
public:
CeaApp
();
void
init
();
};
#endif // CEAAPP_H
This diff is collapsed.
Click to expand it.
commonexchangeapi.pro
+
6
−
0
View file @
38841cd5
...
...
@@ -7,4 +7,10 @@ DEFINES += QT_DEPRECATED_WARNINGS
#
DEFINES
+=
QT_DISABLE_DEPRECATED_BEFORE
=
0
x060000
SOURCES
+=
\
abstractapi
.
cc
\
ceaapp
.
cc
\
main
.
cc
HEADERS
+=
\
abstractapi
.
h
\
ceaapp
.
h
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment