[brlcad-commits] SF.net SVN: brlcad:[35500]
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <dav...@us...> - 2009-08-10 13:17:19
|
Revision: 35500 http://brlcad.svn.sourceforge.net/brlcad/?rev=35500&view=rev Author: davidloman Date: 2009-08-10 13:17:07 +0000 (Mon, 10 Aug 2009) Log Message: ----------- Adding the ACP Application Entry Point. Modified Paths: -------------- rt^3/trunk/src/adminpanel/AdminControlPanel.cxx rt^3/trunk/src/adminpanel/AdminControlPanel.h rt^3/trunk/src/adminpanel/CMakeLists.txt Added Paths: ----------- rt^3/trunk/src/adminpanel/acpMain.cxx Modified: rt^3/trunk/src/adminpanel/AdminControlPanel.cxx =================================================================== --- rt^3/trunk/src/adminpanel/AdminControlPanel.cxx 2009-08-10 12:07:08 UTC (rev 35499) +++ rt^3/trunk/src/adminpanel/AdminControlPanel.cxx 2009-08-10 13:17:07 UTC (rev 35500) @@ -33,6 +33,14 @@ { } + +void AdminControlPanel::connectToHost(const QString& hostName, quint16 port) +{ + this->sock.connectToHost(hostName, port); +} + + + // Local Variables: *** // mode: C++ *** // tab-width: 8 *** Modified: rt^3/trunk/src/adminpanel/AdminControlPanel.h =================================================================== --- rt^3/trunk/src/adminpanel/AdminControlPanel.h 2009-08-10 12:07:08 UTC (rev 35499) +++ rt^3/trunk/src/adminpanel/AdminControlPanel.h 2009-08-10 13:17:07 UTC (rev 35500) @@ -26,14 +26,20 @@ #ifndef __ADMINCONTROLPANEL_H__ #define __ADMINCONTROLPANEL_H__ +#include <QTcpSocket> +#include <QString> class AdminControlPanel { +public: + AdminControlPanel(); + virtual ~AdminControlPanel(); - public: - AdminControlPanel(); - virtual ~AdminControlPanel(); + void connectToHost(const QString& hostName, quint16 port); + +private: + QTcpSocket sock; }; Modified: rt^3/trunk/src/adminpanel/CMakeLists.txt =================================================================== --- rt^3/trunk/src/adminpanel/CMakeLists.txt 2009-08-10 12:07:08 UTC (rev 35499) +++ rt^3/trunk/src/adminpanel/CMakeLists.txt 2009-08-10 13:17:07 UTC (rev 35500) @@ -26,26 +26,32 @@ # ########################################################################## - MESSAGE(STATUS "") MESSAGE(STATUS "################################################") MESSAGE(STATUS "## Configuring AdminControlPanel ##") MESSAGE(STATUS "################################################") MESSAGE(STATUS "") +PROJECT(acp) +IF(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) +ENDIF(COMMAND cmake_policy) + + +INCLUDE (${QT_USE_FILE}) +SET (QT_USE_QTNETWORK TRUE) + set(ACP_SOURCES + acpMain.cxx AdminControlPanel.cxx ) INCLUDE_DIRECTORIES (${RT3_INCLUDE_DIR} ${QT_INCLUDE_DIR}) MESSAGE(STATUS "Include Directories: ${RT3_INCLUDE_DIR} ${QT_INCLUDE_DIR}") -ADD_LIBRARY (acp SHARED ${ACP_SOURCES}) +ADD_EXECUTABLE (acp ${ACP_SOURCES}) +TARGET_LINK_LIBRARIES(acp ${QT_LIBRARIES}) MESSAGE(STATUS "Configuring Complete.") MESSAGE(STATUS "") - - - - Added: rt^3/trunk/src/adminpanel/acpMain.cxx =================================================================== --- rt^3/trunk/src/adminpanel/acpMain.cxx (rev 0) +++ rt^3/trunk/src/adminpanel/acpMain.cxx 2009-08-10 13:17:07 UTC (rev 35500) @@ -0,0 +1,48 @@ +/* A C P M A I N . C X X + * BRL-CAD + * + * Copyright (c) 2009 United States Government as represented by + * the U.S. Army Research Laboratory. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * version 2.1 as published by the Free Software Foundation. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this file; see the file named COPYING for more + * information. + */ +/** @file acpMain.cxx + * + * Administration Control Panel application entry point + * + */ + +#include <iostream> +#include "AdminControlPanel.h" + + +int main(int argc, char* argv[]) +{ + + + std::cout << "Hello World!!! Brought to you by ACP."; + + return 0; +} + + + +// Local Variables: +// tab-width: 8 +// mode: C++ +// c-basic-offset: 4 +// indent-tabs-mode: t +// c-file-style: "stroustrup" +// End: +// ex: shiftwidth=4 tabstop=8 Property changes on: rt^3/trunk/src/adminpanel/acpMain.cxx ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + "Revision Date Author" Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |