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
ecab3de6
Commit
ecab3de6
authored
Feb 17, 2013
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now communication using signal and slots
between threads is working rightly
parent
4f7387ef
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
14 deletions
+16
-14
skauth.cpp
plugins/skauth.cpp
+2
-2
skauth.h
plugins/skauth.h
+3
-3
skproto.cpp
plugins/skproto.cpp
+2
-2
skproto.h
plugins/skproto.h
+3
-3
mainwin.cpp
src/mainwin.cpp
+1
-1
skylivex.cpp
src/skylivex.cpp
+3
-1
skylivex.h
src/skylivex.h
+2
-2
No files found.
plugins/skauth.cpp
View file @
ecab3de6
...
...
@@ -42,12 +42,12 @@ void SkyliveAuth::startPlugin()
}
void
SkyliveAuth
::
receiveMessage
(
std
::
string
&
msg
)
void
SkyliveAuth
::
receiveMessage
(
std
::
string
msg
)
{
std
::
cout
<<
"SkyliveAuth receive"
<<
msg
<<
std
::
endl
;
}
void
SkyliveAuth
::
sendMessage
(
std
::
string
&
msg
)
void
SkyliveAuth
::
sendMessage
(
std
::
string
msg
)
{
emit
putMessage
(
msg
);
}
...
...
plugins/skauth.h
View file @
ecab3de6
...
...
@@ -44,11 +44,11 @@ class SkyliveAuth : public QObject, SkylivexPluginInterface
public
:
void
startPlugin
();
void
sendMessage
(
std
::
string
&
msg
);
void
sendMessage
(
std
::
string
msg
);
public
slots
:
void
receiveMessage
(
std
::
string
&
msg
);
void
receiveMessage
(
std
::
string
msg
);
signals
:
void
putMessage
(
std
::
string
&
msg
);
void
putMessage
(
std
::
string
msg
);
};
plugins/skproto.cpp
View file @
ecab3de6
...
...
@@ -43,12 +43,12 @@ void SkyliveProtocol::startPlugin()
sendMessage
(
prova
);
}
void
SkyliveProtocol
::
receiveMessage
(
std
::
string
&
msg
)
void
SkyliveProtocol
::
receiveMessage
(
std
::
string
msg
)
{
std
::
cout
<<
"SkyliveProtocol receive"
<<
msg
<<
std
::
endl
;
}
void
SkyliveProtocol
::
sendMessage
(
std
::
string
&
msg
)
void
SkyliveProtocol
::
sendMessage
(
std
::
string
msg
)
{
emit
putMessage
(
msg
);
}
...
...
plugins/skproto.h
View file @
ecab3de6
...
...
@@ -44,10 +44,10 @@ class SkyliveProtocol : public QObject, SkylivexPluginInterface
public
:
void
startPlugin
();
void
sendMessage
(
std
::
string
&
msg
);
void
sendMessage
(
std
::
string
msg
);
public
slots
:
void
receiveMessage
(
std
::
string
&
msg
);
void
receiveMessage
(
std
::
string
msg
);
signals
:
void
putMessage
(
std
::
string
&
msg
);
void
putMessage
(
std
::
string
msg
);
};
src/mainwin.cpp
View file @
ecab3de6
...
...
@@ -67,5 +67,5 @@ MainWin::~MainWin()
void
MainWin
::
msgFromCore
(
std
::
string
&
msg
)
{
//
std::cout << "Message from core: " << msg << std::endl;
std
::
cout
<<
"Message from core: "
<<
msg
<<
std
::
endl
;
}
src/skylivex.cpp
View file @
ecab3de6
...
...
@@ -43,12 +43,14 @@
#include "pluginsinterfaces.h"
#include <iostream>
Q_DECLARE_METATYPE
(
std
::
string
)
// Load and initialize plugins and shared memory communication
void
SkyliveX
::
initialize
()
{
std
::
cout
<<
"antani"
<<
std
::
endl
;
qRegisterMetaType
<
std
::
string
>
(
"std::string"
);
loadPlugins
();
}
...
...
@@ -125,7 +127,7 @@ void SkyliveX::receiveFromMainWin(std::string &msg)
emit
msgForPlugins
(
msg
);
}
void
SkyliveX
::
receiveFromPlugins
(
std
::
string
&
msg
)
void
SkyliveX
::
receiveFromPlugins
(
std
::
string
msg
)
{
sendMessage
(
msg
);
}
src/skylivex.h
View file @
ecab3de6
...
...
@@ -67,12 +67,12 @@ class SkyliveX : public QObject
void
initialize
();
void
process
();
void
receiveFromMainWin
(
std
::
string
&
msg
);
void
receiveFromPlugins
(
std
::
string
&
msg
);
void
receiveFromPlugins
(
std
::
string
msg
);
signals
:
void
finished
();
void
msgForMainWin
(
std
::
string
&
msg
);
void
msgForPlugins
(
std
::
string
&
msg
);
void
msgForPlugins
(
std
::
string
msg
);
};
#endif
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