VR-Forces 4.0.4 Class Documentation
include/vrfGuiCore/DtVrfResourceRequestor.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtVrfResourceRequestor.h,v $ $Revision: 1.2 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00015 
00016 #pragma once
00017 
00018 #include <vrfGuiCore/vrfGuiCore.h>
00019 
00020 #include <vrvCore/DtSimEntry.h>
00021 #include <vrfmsgs/ifResMonResponse.h>
00022 
00023 #include <vector>
00024 
00025 namespace makVrv
00026 {
00027    class DtSimEntry;
00028    class DtDe;
00029 }
00030 
00031 class DtIfServerRequestResponse;
00032 class DtResource;
00033 
00034 namespace makVrf
00035 {
00037    class DT_DLL_VRFGUICORE DtVrfResourceRequestor
00038    {
00039    public:
00040       DtVrfResourceRequestor(makVrv::DtDe&);
00041       virtual ~DtVrfResourceRequestor();
00042 
00043       virtual void requestResourcesFor(const std::vector<makVrv::DtSimEntry*>& data);
00044 
00047       virtual void startMonitoring(const std::string&, int rate = -1);
00048 
00050       virtual void stopMonitoring(const std::string&);
00051 
00053       virtual void setUpdateRate(const std::string& entity, int);
00054 
00055    protected:
00056       virtual void slot_resourceResponse(const DtIfServerRequestResponse&);
00057 
00058    protected:
00060 
00062       virtual void resourcesChanged() = 0;
00063 
00066       virtual void resourceCheckingDisabled() = 0;
00067 
00069       virtual void addResource(const DtResource&) = 0;
00070 
00072       virtual void resourceCheckComplete() = 0;
00073 
00075       virtual void resourceUpdated(const DtResource&) = 0;
00076 
00077    protected:
00078       makVrv::DtDe&              myDe;
00079       std::vector<std::string>   myResourceRequests;
00080       bool                       myCanSetResources;
00081       DtEntityResourceList       myResources;
00082    };
00083 }

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)