Commit f9b062ac authored by claes's avatar claes

LoadArchives changed from bitmask to string

parent 88368fb1
/* /*
* Proview $Id: ge_graph_web.cpp,v 1.12 2007-02-07 15:45:44 claes Exp $ * Proview $Id: ge_graph_web.cpp,v 1.13 2008-06-03 06:13:43 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -93,7 +93,7 @@ int Graph::generate_web( ldh_tSesContext ldhses) ...@@ -93,7 +93,7 @@ int Graph::generate_web( ldh_tSesContext ldhses)
pwr_tBoolean enable_alarmlist; pwr_tBoolean enable_alarmlist;
pwr_tBoolean enable_eventlog; pwr_tBoolean enable_eventlog;
pwr_tBoolean enable_navigator; pwr_tBoolean enable_navigator;
pwr_tMask load_archives; pwr_tString256 load_archives;
char style_sheet[80]; char style_sheet[80];
char start_URL[80]; char start_URL[80];
char name[80]; char name[80];
...@@ -221,15 +221,15 @@ int Graph::generate_web( ldh_tSesContext ldhses) ...@@ -221,15 +221,15 @@ int Graph::generate_web( ldh_tSesContext ldhses)
sts = ldh_GetObjectPar( ldhses, webhandler_objid, "RtBody", "LoadArchives", sts = ldh_GetObjectPar( ldhses, webhandler_objid, "RtBody", "LoadArchives",
&value_p, &size); &value_p, &size);
if (EVEN(sts)) return sts; if (EVEN(sts)) return sts;
load_archives = *(pwr_tMask *)value_p; strcpy( load_archives, (char *)value_p);
free( value_p); free( value_p);
strcpy( arlist, "pwr_rt_client.jar,pwr_jop.jar,pwr_jopc.jar"); strcpy( arlist, "pwr_rt_client.jar,pwr_jop.jar,pwr_jopc.jar");
if ( load_archives & pwr_mWebLoadArchiveMask_BaseComponent) dcli_trim( load_archives, load_archives);
strcat( arlist, ",pwr_bcomp.jar"); if ( strcmp( load_archives, "") != 0) {
if ( load_archives & pwr_mWebLoadArchiveMask_ABB) strcat( arlist, ",");
strcat( arlist, ",pwr_abb.jar"); strcat( arlist, load_archives);
}
// Login applet as default start URL // Login applet as default start URL
if ( strcmp( start_URL, "") == 0 && enable_login) if ( strcmp( start_URL, "") == 0 && enable_login)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment