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
3a0d0f48
Commit
3a0d0f48
authored
Feb 24, 2013
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split jsbridge headers from mainwin
parent
3e0c50be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
28 deletions
+75
-28
jsbridge.h
src/jsbridge.h
+71
-0
mainwin.h
src/mainwin.h
+1
-27
skylivex.pro
src/skylivex.pro
+3
-1
No files found.
src/jsbridge.h
0 → 100644
View file @
3a0d0f48
/* ____ _ _ _ __ __
* / ___|| | ___ _| (_)_ _____\ \/ /
* \___ \| |/ / | | | | \ \ / / _ \\ /
* ___) | <| |_| | | |\ V / __// \ Remote Telescopes
* |____/|_|\_\\__, |_|_| \_/ \___/_/\_\ For the masses
* |___/
*
* Copyright (C) 2013 Franco (nextime) Lanza <nextime@nexlab.it>
* Copyright (C) 2013 Ivan Bellia <skylive@skylive.it>
*
* All rights reserved.
*
* This file is part of SkyliveX.
*
* SkyliveX is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Foobar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Foobar. If not, see <http://www.gnu.org/licenses/>.
*
********************************************************************
*
* File:
*
* Purpose:
*
*/
#ifndef JSBRIDGE_H
#define JSBRIDGE_H
#include <QObject>
#include <QStrings>
class
MainWin
;
// forward declaration for typedef
/*
* class JSBridge
* This class connect the javascript object SkyliveX
* to c++
*/
class
JSBridge
:
public
QObject
{
Q_OBJECT
public
:
MainWin
*
mwin
;
void
changePageContent
(
QString
elementid
,
QString
content
);
signals
:
void
changeContent
(
QString
elementid
,
QString
content
);
void
notify
(
QString
content
);
void
alertmsg
(
QString
content
);
void
public_received
(
QString
user
,
QString
content
);
public
slots
:
void
pushLogin
(
QString
username
,
QString
password
);
void
resizeWin
(
int
width
,
int
height
);
void
toggleBorders
(
bool
borders
);
void
toggleTransparentBackground
(
bool
transparentbg
);
};
#endif
src/mainwin.h
View file @
3a0d0f48
...
...
@@ -42,39 +42,13 @@
#include <QString>
#include <QObject>
#include <ipcmsg.h>
#include "jsbridge.h"
class
MainWin
;
// forward declaration for typedef
// This is for member pointers to map messages
typedef
void
(
MainWin
::*
SKHandlerFunction
)(
SKMessage
&
);
//typedef int (MainWin::*SKHandlerFunction)(SKMessage&);
/*
* class JSBridge
* This class connect the javascript object SkyliveX
* to c++
*/
class
JSBridge
:
public
QObject
{
Q_OBJECT
public
:
MainWin
*
mwin
;
void
changePageContent
(
QString
elementid
,
QString
content
);
signals
:
void
changeContent
(
QString
elementid
,
QString
content
);
void
notify
(
QString
content
);
void
alertmsg
(
QString
content
);
void
public_received
(
QString
user
,
QString
content
);
public
slots
:
void
pushLogin
(
QString
username
,
QString
password
);
void
resizeWin
(
int
width
,
int
height
);
void
toggleBorders
(
bool
borders
);
void
toggleTransparentBackground
(
bool
transparentbg
);
};
/*
* class MainWin
...
...
src/skylivex.pro
View file @
3a0d0f48
...
...
@@ -6,7 +6,9 @@ SOURCES = main.cpp \
HEADERS
=
skylivex
.
h
\
mainwin
.
h
\
pluginsinterfaces
.
h
\
ipcmsg
.
h
ipcmsg
.
h
\
sksettings
.
h
\
jsbridge
.
h
QT
+=
core
network
webkitwidgets
widgets
...
...
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