summaryrefslogtreecommitdiffstats
path: root/src/vsession.cpp
Commit message (Collapse)AuthorAgeFilesLines
* remove dead code ..Sebastian Schmelzer2011-03-041-4/+0Star
|
* * add debug modeSebastian Schmelzer2011-03-041-3/+31
| | | | | | | | * implement isValid() for vsessions (checks vmdk/vbox existence) * make use of isValid() and isActive() when filling the session list * add icons for vbox, lxde, unknown images, failsafe/term * use exec to guess xsession icon instead of desciption * FIX: remove newlines/whitespaces from xmlfilter.sh output
* 1) cmd-switch to use a window managerJohann Latocha2011-03-011-0/+4
| | | | 2) openslx logo added
* [Fix] Startup problems with xsession (Quick&Dirty)Johann Latocha2011-03-011-2/+7
|
* Fix for issue #781Jan Darmochwal2010-11-041-8/+10
| | | | | This patch fixes issue #781 (http://lab.openslx.org/issues/781). Vmchooser wrote bad .xml files.
* Removed some TODO commentsJan Darmochwal2010-11-041-11/+1Star
|
* Read environment specific optionsJan Darmochwal2010-11-041-6/+60
| | | | | | | | | | | | | | * Vmchooser reads from $vmchooser_etc_path/vmchooser-$pool.xml and merges its contents to any virtual session .xml file * file format: <environment param="$pool"> <printers> <printer path="..." name="...">Some Printer</printer> </printers> <scanners>...</scanners> <shared_folders>...</shared_folders> </environment>
* Config option: poolJan Darmochwal2010-11-041-1/+8
| | | | | | | | | | | | * formerly vmchooser_env in vmchooser.conf * pool/vmchooser_env in vmchooser.conf * -P/--pools command line option * a virtual session will only be displayed if a) their pools attribute contains pool b) their pools attribute is unset/empty c) pool is unset/empty * fix for segfault with invalid command line options
* Added global vars, version number in globals.hJan Darmochwal2010-11-011-17/+8Star
|
* Remove debug printf from vsession.cppJan Darmochwal2010-10-091-1/+0Star
|
* Empty icon for VSessions, default to vmware iconJan Darmochwal2010-10-091-0/+12
| | | | | * added empty icon "none" * default to vmware icon if no icon is set for a VSession
* Tidy up the codeJan Darmochwal2010-10-071-9/+11
| | | | | | | | | | | | | | | | | | * fixed compiler warnings, added -Werror to CMakeLists.txt * removed LibXml2 and boost stuff from CMakeLists.txt * fixed some things cpplint.py complains about: * make single-argument constructors explicit * add space before if/for/while/... * don't put { on a line of its own * remove space after ! operator * add space between // and comment * remove extra space before ( in function call * remove extra space before ) * shorten lines to <= 80 characters * remove blank lines at the start of a code block * maybe others
* Support for command line arguments and conf filesJan Darmochwal2010-10-071-1/+1
| | | | | | | | * anyoption has been replaced by getopt * replaces huge unmaintainable .cpp and .h files from an external source by standard POSIX library calls * I would suggest using Boost.Program_options if cross-platform support is needed * support user/global configuration file
* recursive globbing in VSession::readXmlDir()Jan Darmochwal2010-10-061-4/+8
| | | | VSession::readXmlDir() now reads .xml files in subdirectories as well
* Remove debug printfsJan Darmochwal2010-10-061-29/+1Star
|
* Allow sessions to be active for a given date rangeJan Darmochwal2010-10-041-2/+35
| | | | | | | | | | | | | | | | | | | | .xml files for Virtual Sessions may have an "active"-element this patch allows a date range to be given as a parameter for that element <active param="[YYYY-MM-DD]/[YYYY-MM-DD]"/> examples: * <active param="1970-01-01/1971-01-01"> active from Jan 1st 1970 till Jan 1st 1971 * <active param="/1971-01-01"> active till Jan 1st 1971 * <active param="1970-01-01/"> active from Jan 1st 1970 onwards notes: * invalid dates are treated like empty dates (eg. "1984-01-01/1984-02-30" is equal to "1984-01-01/") * active defaults to "true" for all values except "false" and past or future date ranges * an inactive session will not be displayed by vmchooser, this does not prevent the user from manually starting the corrensponding virtual machine image
* TreeView for sessions (replaces ListView)Jan Darmochwal2010-10-031-1/+1
| | | | | | | | | TreeView with SessionTreeModel replaces the old List View Other changes: * fixed bad copy and paste in CMakeLists.txt * added make clean to build.sh * removed moc_ and ui_ files from src
* Qt port is almost complete (at least it compiles)Jan Darmochwal2010-10-021-0/+295
Major change: * struct DataEntry has become class Session with sub-classes XSession and VSession * functions from addInfo.cpp, addPrinters.cpp, addScanners.cpp, readLinSess.cpp, readXmlDir.cpp, runImage.cpp have been moved to XSession and VSession Several minor changes: * new files globals.h and globals.cpp for global variables (replaces constants.h and paths.h) * replaced (all) libxml2, (much) std:: and (most) boost:: stuff by Qt stuff Things left to do: * remove tons of debug printfs * show error messages on errors * tidy up anyoption stuff in main() * highlight session run previously * readGroupXml stuff * tree view (with "X Sessions" and "Virtual Sessions" sections) instead of list view for session selection