Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_vip
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_vip
Commits
794b72a6
Commit
794b72a6
authored
Apr 11, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修改可以多次启动的bug。 2. 启动后发出Toast通知。
parent
a36edc05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
fmp_vip_p.cpp
+13
-6
No files found.
fmp_vip_p.cpp
View file @
794b72a6
#
include
"fmp_vip_p.h"
#include <fmp_settings_i.h>
#include <fmp_home_i.h>
#include <QCoreApplication>
#include <QDateTime>
#include <ctkPluginContext.h>
...
...
@@ -18,15 +19,21 @@ FMPVipPrivate::FMPVipPrivate(FMPVip *vip):
int
FMPVipPrivate
::
StartVip
()
{
Q_Q
(
FMPVip
);
FMP_INFO
()
<<
"Vip start"
;
FMPHomeInterface
*
home
=
q
->
GetService
<
FMPHomeInterface
>
(
q
->
_ctx
);
if
(
q
->
_inited
)
{
home
->
notification
(
QString
::
fromLocal8Bit
(
"[非码会员]已在运行!"
));
}
else
{
_settings
=
q
->
GetService
<
FMPSettingsInterface
>
(
q
->
_ctx
);
FMPVipSettings
::
instance
()
->
init
(
_settings
);
emit
startVip
();
q
->
_inited
=
true
;
_settings
=
q
->
GetService
<
FMPSettingsInterface
>
(
q
->
_ctx
);
FMPVipSettings
::
instance
()
->
init
(
_settings
);
home
->
notification
(
QString
::
fromLocal8Bit
(
"[非码会员]启动成功!"
));
emit
startVip
()
;
q
->
_inited
=
true
;
FMP_INFO
()
<<
"Vip start"
;
}
return
FMP_SUCCESS
;
}
...
...
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