added missing file
authorVictor Kirhenshtein <victor@netxms.org>
Tue, 10 May 2011 18:23:20 +0000 (18:23 +0000)
committerVictor Kirhenshtein <victor@netxms.org>
Tue, 10 May 2011 18:23:20 +0000 (18:23 +0000)
src/server/core/Makefile.am
src/server/core/dashboard.cpp [new file with mode: 0644]

index ac18693..b9e63ed 100644 (file)
@@ -7,9 +7,9 @@ libnxcore_la_SOURCES = acl.cpp agent.cpp agent_policy.cpp actions.cpp \
                        admin.cpp alarm.cpp audit.cpp ap_config.cpp \
                        ap_jobs.cpp beacon.cpp bridge.cpp cdp.cpp cert.cpp \
                        client.cpp cluster.cpp columnfilter.cpp condition.cpp \
-                       config.cpp container.cpp correlate.cpp datacoll.cpp \
-                       dbwrite.cpp dcitem.cpp dcithreshold.cpp dcivalue.cpp \
-                       debug.cpp ef.cpp email.cpp entirenet.cpp epp.cpp \
+                       config.cpp container.cpp correlate.cpp dashboard.cpp \
+                       datacoll.cpp dbwrite.cpp dcitem.cpp dcithreshold.cpp \
+                       dcivalue.cpp debug.cpp ef.cpp email.cpp entirenet.cpp epp.cpp \
                        events.cpp evproc.cpp fdb.cpp hk.cpp id.cpp import.cpp \
                        index.cpp interface.cpp isc.cpp job.cpp jobmgr.cpp jobqueue.cpp \
                        layer2.cpp lln.cpp lldp.cpp locks.cpp logfilter.cpp \
diff --git a/src/server/core/dashboard.cpp b/src/server/core/dashboard.cpp
new file mode 100644 (file)
index 0000000..b937985
--- /dev/null
@@ -0,0 +1,58 @@
+/* 
+** NetXMS - Network Management System
+** Copyright (C) 2003-2011 Victor Kirhenshtein
+**
+** This program 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 2 of the License, or
+** (at your option) any later version.
+**
+** This program 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 this program; if not, write to the Free Software
+** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+**
+** File: netmap.cpp
+**
+**/
+
+#include "nxcore.h"
+
+
+/**
+ * Default constructor
+ */
+Dashboard::Dashboard() : Container()
+{
+       m_elements = new ObjectArray<DashboardElement>();
+       m_elements->setOwner(true);
+}
+
+/**
+ * Constructor for creating new dashboard object
+ */
+Dashboard::Dashboard(const TCHAR *name) : Container(name, 0)
+{
+       m_elements = new ObjectArray<DashboardElement>();
+       m_elements->setOwner(true);
+}
+
+/**
+ * Destructor
+ */
+Dashboard::~Dashboard()
+{
+       delete m_elements;
+}
+
+/**
+ * Redefined status calculation
+ */
+void Dashboard::calculateCompoundStatus(BOOL bForcedRecalc)
+{
+   m_iStatus = STATUS_NORMAL;
+}