import java.util.*;
import javax.swing.*;
import org.cups.*;
public class GLPvars
{
public static String cupsServerName = null;
public static String selectedPrinterName = null;
public static String cupsUser = "root";
public static String cupsPasswd = "Frak998";
public static JTabbedPane mainGLPPanel = null;
public static GLPtabs tabs = null;
protected static List serverList = null;
public static GLPjobTableModel searchTM = null;
public static JTable searchTable = null;
public static boolean showMyJobs = false;
public static boolean showCompletedJobs = false;
public GLPvars()
{
cupsServerName = "localhost";
serverList = new ArrayList();
}
public static void init()
{
cupsServerName = "localhost";
serverList = new ArrayList();
}
public static String getServerName()
{
return(cupsServerName);
}
public static void setServerName( String name )
{
cupsServerName = name;
}
public static void clearServerList()
{
serverList = null;
}
public static void addToServerList( String serverName )
{
if (serverList != null)
serverList.add(serverName);
}
public static String[] getServerList()
{
if (serverList != null)
{
String[] servers = new String[serverList.size()];
for (int i=0; i < serverList.size(); i++)
servers[i] = (String)serverList.get(i);
return(servers);
}
return(null);
}
}