VR-Forces 4.0.4 Class Documentation
include/vrvOsgEarthQt/DtOsgEarthStartupDialogInterface.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2011 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtOsgEarthStartupDialogInterface.h,v $ $Revision: 1.2 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00012 #pragma once
00013 
00014 #include <vrvUtil/signalslib.h>
00015 #include <vrvOsgEarthQt/vrvOsgEarthQt.h>
00016 
00017 namespace makVrv
00018 {
00023    class DT_DLL_VRVOSGEARTHQT DtOsgEarthStartupDialogInterface
00024    {
00025    public:
00026       enum ServerStatus
00027       {
00028          Available = 0,
00029          Requesting,
00030          Unavailable
00031       };
00032 
00033       enum StartupPreference
00034       {
00035          LoadEarthFile = 0,
00036          LoadLocalTerrain,
00037          LoadNoTerrain
00038       };
00039 
00040    public:
00042       virtual ~DtOsgEarthStartupDialogInterface();
00043 
00045       virtual void setServerAvailability(const std::string&, ServerStatus, const std::string& reason) = 0;
00046 
00048       virtual void setCurrentServer(const std::string&) = 0;
00049 
00051       virtual void addServer(const std::string& desc) = 0;
00052 
00054       virtual void addTerrain(const std::string& desc) = 0;
00055 
00057       virtual void setStartupPreference(StartupPreference) = 0;
00058 
00060       virtual void setNeverShowAgain(bool neverShow) = 0;
00061 
00063       virtual void showDialog() = 0;
00064 
00066       virtual void clear() = 0;
00067 
00068       boost::signal<void (const std::string&)> signal_requestServerAvailability;
00069       boost::signal<void (bool)> signal_neverShowAgain;
00070       boost::signal<void (const std::string&)> signal_connectToServer;
00071       boost::signal<void (const std::string&)> signal_loadTerrain;
00072    };
00073 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)