/** * File: clients/CASA.ycp * Package: Configuration of CASA * Summary: Main file * Authors: casa * ********************************************************************* * Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; version 2.1 * of the License. * * This library 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 * Library Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, Novell, Inc. * * To contact Novell about this file by physical or electronic mail, * you may find current contact information at www.novell.com. * ********************************************************************* * * Main file for CASA configuration. Uses all other files. */ { /*** *

Configuration of CASA

*/ textdomain "CASA"; /* The main () */ y2milestone ("----------------------------------------"); y2milestone ("Novell CASA module started"); import "Progress"; import "Report"; import "Summary"; import "CommandLine"; include "CASA/wizards.ycp"; map cmdline_description = $[ "id" : "CASA", /* Command line help text for the XCASA module */ "help" : _("Configuration of CASA"), "guihandler" : NovellCasaSequence, "initialize" : NovellCasa::Read, "finish" : NovellCasa::Write, "actions" : $[ // FIXME TODO: fill the functionality description here ], "options" : $[ // FIXME TODO: fill the option descriptions here ], "mapping" : $[ // FIXME TODO: fill the mappings of actions and options here ] ]; /* is this proposal or not? */ boolean propose = false; list args = WFM::Args(); if(size(args) > 0) { if(is(WFM::Args(0), path) && WFM::Args(0) == .propose) { y2milestone("Using PROPOSE mode"); propose = true; } } /* main ui function */ any ret = nil; if(propose) ret = NovellCasaAutoSequence(); else ret = CommandLine::Run(cmdline_description); y2debug("ret=%1", ret); /* Finish */ y2milestone("Novell CASA module finished"); y2milestone("----------------------------------------"); return ret; /* EOF */ }