Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
skylivex
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
astronomy
skylivex
Commits
ec70a4d2
Commit
ec70a4d2
authored
Feb 17, 2013
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now IPC messages are ok.
parent
ee97073f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
22 deletions
+22
-22
skauth.cpp
plugins/skauth.cpp
+1
-1
skproto.cpp
plugins/skproto.cpp
+2
-2
ipcmsg.cpp
src/ipcmsg.cpp
+9
-8
ipcmsg.h
src/ipcmsg.h
+7
-7
mainwin.cpp
src/mainwin.cpp
+1
-1
skylivex.cpp
src/skylivex.cpp
+2
-3
No files found.
plugins/skauth.cpp
View file @
ec70a4d2
...
...
@@ -45,7 +45,7 @@ void SkyliveAuth::startPlugin()
void
SkyliveAuth
::
receiveMessage
(
SKMessage
::
SKMessage
msg
)
{
std
::
cout
<<
"SkyliveAuth
receive"
<<
msg
.
handle
<<
std
::
endl
;
std
::
cout
<<
"SkyliveAuth
msg received: "
<<
msg
.
handle
.
toStdString
()
<<
std
::
endl
;
}
void
SkyliveAuth
::
sendMessage
(
SKMessage
::
SKMessage
msg
)
...
...
plugins/skproto.cpp
View file @
ec70a4d2
...
...
@@ -40,13 +40,13 @@
void
SkyliveProtocol
::
startPlugin
()
{
std
::
cout
<<
"SkyliveProtocol initialized in thread "
<<
thread
()
<<
std
::
endl
;
std
::
string
prova
(
"ANTANI STA PROVA!!"
);
SKMessage
::
SKMessage
prova
(
"ANTANI STA PROVA!!"
);
sendMessage
(
prova
);
}
void
SkyliveProtocol
::
receiveMessage
(
SKMessage
::
SKMessage
msg
)
{
std
::
cout
<<
"SkyliveProtocol
receive"
<<
msg
.
handle
<<
std
::
endl
;
std
::
cout
<<
"SkyliveProtocol
msg received: "
<<
msg
.
handle
.
toStdString
()
<<
std
::
endl
;
}
void
SkyliveProtocol
::
sendMessage
(
SKMessage
::
SKMessage
msg
)
...
...
src/ipcmsg.cpp
View file @
ec70a4d2
...
...
@@ -35,38 +35,39 @@
#include <QTime>
#include <QHash>
#include <QString>
#include <iostream>
#include "ipcmsg.h"
SKMessage
::
SKMessage
(
std
::
string
s
,
std
::
string
h
,
QHash
<
std
::
string
,
std
::
s
tring
>
p
)
SKMessage
::
SKMessage
(
QString
s
,
QString
h
,
QHash
<
QString
,
QS
tring
>
p
)
{
handle
=
h
;
sender
=
s
;
parameters
=
p
;
time
=
QTime
::
currentTime
();
std
::
cout
<<
"SKMessage initialized "
<<
handle
<<
std
::
endl
;
std
::
cout
<<
"SKMessage initialized "
<<
handle
.
toStdString
()
<<
std
::
endl
;
}
SKMessage
::
SKMessage
(
std
::
string
h
,
QHash
<
std
::
string
,
std
::
s
tring
>
p
)
SKMessage
::
SKMessage
(
QString
h
,
QHash
<
QString
,
QS
tring
>
p
)
{
sender
=
std
::
s
tring
(
"unknown"
);
sender
=
QS
tring
(
"unknown"
);
time
=
QTime
::
currentTime
();
parameters
=
p
;
handle
=
h
;
}
SKMessage
::
SKMessage
(
std
::
s
tring
h
)
SKMessage
::
SKMessage
(
QS
tring
h
)
{
sender
=
std
::
s
tring
(
"unknown"
);
sender
=
QS
tring
(
"unknown"
);
handle
=
h
;
time
=
QTime
::
currentTime
();
}
SKMessage
::
SKMessage
()
{
sender
=
std
::
s
tring
(
"unknown"
);
handle
=
std
::
s
tring
(
"none"
);
sender
=
QS
tring
(
"unknown"
);
handle
=
QS
tring
(
"none"
);
time
=
QTime
::
currentTime
();
}
...
...
src/ipcmsg.h
View file @
ec70a4d2
...
...
@@ -38,7 +38,7 @@
#include <QTime>
#include <QHash>
#include <
iostream
>
#include <
QString
>
/*
* SKMessage
...
...
@@ -54,13 +54,13 @@ class SKMessage
~
SKMessage
();
QTime
time
;
std
::
s
tring
sender
;
std
::
s
tring
handle
;
QHash
<
std
::
string
,
std
::
s
tring
>
parameters
;
QS
tring
sender
;
QS
tring
handle
;
QHash
<
QString
,
QS
tring
>
parameters
;
SKMessage
(
std
::
string
s
,
std
::
string
h
,
QHash
<
std
::
string
,
std
::
s
tring
>
p
);
SKMessage
(
std
::
string
h
,
QHash
<
std
::
string
,
std
::
s
tring
>
p
);
SKMessage
(
std
::
s
tring
h
);
SKMessage
(
QString
s
,
QString
h
,
QHash
<
QString
,
QS
tring
>
p
);
SKMessage
(
QString
h
,
QHash
<
QString
,
QS
tring
>
p
);
SKMessage
(
QS
tring
h
);
};
...
...
src/mainwin.cpp
View file @
ec70a4d2
...
...
@@ -68,5 +68,5 @@ MainWin::~MainWin()
void
MainWin
::
msgFromCore
(
SKMessage
::
SKMessage
&
msg
)
{
std
::
cout
<<
"M
essage from core: "
<<
msg
.
handle
<<
std
::
endl
;
std
::
cout
<<
"M
ainWindow msg reveived: "
<<
msg
.
handle
.
toStdString
()
<<
std
::
endl
;
}
src/skylivex.cpp
View file @
ec70a4d2
...
...
@@ -55,11 +55,10 @@ void SkyliveX::initialize()
}
// read messages from plugins and dispatch to others
void
SkyliveX
::
process
()
{
SKMessage
::
SKMessage
sarca
(
"ANTANI!"
);
sendMessage
(
sarca
);
//
SKMessage::SKMessage sarca("ANTANI!");
//
sendMessage(sarca);
}
...
...
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