Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_settings
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
fmp_settings
Commits
ad13983a
Commit
ad13983a
authored
Apr 20, 2017
by
Carwyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 在析构中调用停止服务接口;
parent
770b2d40
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletions
+14
-1
fmp_settings.cpp
+10
-0
fmp_settings.h
+1
-0
fmp_settings_def.h
+2
-0
version.h
+1
-1
No files found.
fmp_settings.cpp
View file @
ad13983a
...
@@ -16,6 +16,16 @@ FMPSettings::FMPSettings(ctkPluginContext *context)
...
@@ -16,6 +16,16 @@ FMPSettings::FMPSettings(ctkPluginContext *context)
StartService
();
StartService
();
}
}
FMPSettings
::~
FMPSettings
()
{
StopService
();
if
(
d_ptr
)
{
delete
d_ptr
;
d_ptr
=
nullptr
;
}
}
void
FMPSettings
::
InitService
()
void
FMPSettings
::
InitService
()
{
{
d_func
()
->
Init
();
d_func
()
->
Init
();
...
...
fmp_settings.h
View file @
ad13983a
...
@@ -18,6 +18,7 @@ class FMPSettings : public QObject, public FMPSettingsInterface
...
@@ -18,6 +18,7 @@ class FMPSettings : public QObject, public FMPSettingsInterface
public
:
public
:
explicit
FMPSettings
(
ctkPluginContext
*
context
);
explicit
FMPSettings
(
ctkPluginContext
*
context
);
virtual
~
FMPSettings
();
protected
:
protected
:
//! BaseInterface
//! BaseInterface
...
...
fmp_settings_def.h
View file @
ad13983a
...
@@ -30,4 +30,6 @@
...
@@ -30,4 +30,6 @@
#define FMP_APPNAME "非码POS"
#define FMP_APPNAME "非码POS"
#define FMP_INIKEY_PRINTER "Printer/printname"
#endif // FMP_SETTINGS_DEF_H
#endif // FMP_SETTINGS_DEF_H
version.h
View file @
ad13983a
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_REVISION 0
#define VER_BUILD
3
#define VER_BUILD
5
//! Convert version numbers to string
//! Convert version numbers to string
#define _STR(S) #S
#define _STR(S) #S
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment