#############################################################################
-# Makefile for building: qt-console
-# Generated by qmake (2.01a) (Qt 4.2.1) on: Fri Jan 26 20:53:56 2007
-# Project: qt-console.pro
+# Makefile for building: bat
+# Generated by qmake (2.01a) (Qt 4.2.1) on: Sat Jan 27 18:35:42 2007
+# Project: bat.pro
# Template: app
-# Command: /usr/bin/qmake -unix -o Makefile qt-console.pro
+# Command: /usr/bin/qmake -unix -o Makefile bat.pro
#############################################################################
####### Compiler, tools and options
/usr/share/qt4/mkspecs/features/moc.prf \
/usr/share/qt4/mkspecs/features/resources.prf \
/usr/share/qt4/mkspecs/features/uic.prf \
- qt-console.pro
-QMAKE_TARGET = qt-console
+ bat.pro
+QMAKE_TARGET = bat
DESTDIR =
-TARGET = qt-console
+TARGET = bat
first: all
####### Implicit rules
$(TARGET): ui_main.h $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
-Makefile: qt-console.pro /usr/share/qt4/mkspecs/default/qmake.conf /usr/share/qt4/mkspecs/common/unix.conf \
+Makefile: bat.pro /usr/share/qt4/mkspecs/default/qmake.conf /usr/share/qt4/mkspecs/common/unix.conf \
/usr/share/qt4/mkspecs/common/g++.conf \
/usr/share/qt4/mkspecs/common/linux.conf \
/usr/share/qt4/mkspecs/qconfig.pri \
/usr/share/qt4/mkspecs/features/uic.prf \
/usr/lib/libQtGui.prl \
/usr/lib/libQtCore.prl
- $(QMAKE) -unix -o Makefile qt-console.pro
+ $(QMAKE) -unix -o Makefile bat.pro
/usr/share/qt4/mkspecs/common/unix.conf:
/usr/share/qt4/mkspecs/common/g++.conf:
/usr/share/qt4/mkspecs/common/linux.conf:
/usr/lib/libQtGui.prl:
/usr/lib/libQtCore.prl:
qmake: FORCE
- @$(QMAKE) -unix -o Makefile qt-console.pro
+ @$(QMAKE) -unix -o Makefile bat.pro
dist:
- @$(CHK_DIR_EXISTS) .tmp/qt-console1.0.0 || $(MKDIR) .tmp/qt-console1.0.0
- $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/qt-console1.0.0/ && $(COPY_FILE) --parents mainwindow.h console_conf.h .tmp/qt-console1.0.0/ && $(COPY_FILE) --parents main.qrc .tmp/qt-console1.0.0/ && $(COPY_FILE) --parents main.cpp authenticate.cpp console_conf.cpp mainwindow.cpp .tmp/qt-console1.0.0/ && $(COPY_FILE) --parents main.ui .tmp/qt-console1.0.0/ && (cd `dirname .tmp/qt-console1.0.0` && $(TAR) qt-console1.0.0.tar qt-console1.0.0 && $(COMPRESS) qt-console1.0.0.tar) && $(MOVE) `dirname .tmp/qt-console1.0.0`/qt-console1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/qt-console1.0.0
+ @$(CHK_DIR_EXISTS) .tmp/bat1.0.0 || $(MKDIR) .tmp/bat1.0.0
+ $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/bat1.0.0/ && $(COPY_FILE) --parents mainwindow.h console_conf.h .tmp/bat1.0.0/ && $(COPY_FILE) --parents main.qrc .tmp/bat1.0.0/ && $(COPY_FILE) --parents main.cpp authenticate.cpp console_conf.cpp mainwindow.cpp .tmp/bat1.0.0/ && $(COPY_FILE) --parents main.ui .tmp/bat1.0.0/ && (cd `dirname .tmp/bat1.0.0` && $(TAR) bat1.0.0.tar bat1.0.0 && $(COMPRESS) bat1.0.0.tar) && $(MOVE) `dirname .tmp/bat1.0.0`/bat1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/bat1.0.0
yaccclean:
####### Compile
-main.o: main.cpp mainwindow.h \
+main.o: main.cpp console.h \
+ mainwindow.h \
ui_main.h \
console_conf.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
-authenticate.o: authenticate.cpp console_conf.h
+authenticate.o: authenticate.cpp mainwindow.h \
+ ui_main.h \
+ console_conf.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o authenticate.o authenticate.cpp
console_conf.o: console_conf.cpp console_conf.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o console_conf.o console_conf.cpp
-mainwindow.o: mainwindow.cpp mainwindow.h \
- ui_main.h
+mainwindow.o: mainwindow.cpp console.h \
+ mainwindow.h \
+ ui_main.h \
+ console_conf.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
moc_mainwindow.o: moc_mainwindow.cpp
Switzerland, email:ftf@fsfeurope.org.
*/
-#include "mainwindow.h"
#include <QApplication>
-#include "config.h"
-#include "bacula.h"
-#include "console_conf.h"
-#include "jcr.h"
+#include "console.h"
/* Imported functions */
static void usage();
static int check_resources();
-#define CONFIG_FILE "./qt-console.conf" /* default configuration file */
+#define CONFIG_FILE "./bat.conf" /* default configuration file */
/* Static variables */
static char *configfile = NULL;
fprintf(stderr, _(
PROG_COPYRIGHT
"\nVersion: %s (%s) %s %s %s\n\n"
-"Usage: qt-console [-s] [-c config_file] [-d debug_level] [config_file]\n"
+"Usage: bat [-s] [-c config_file] [-d debug_level] [config_file]\n"
" -c <file> set configuration file to file\n"
" -dnn set debug level to nn\n"
" -s no signals\n"
*
*/
-#include "mainwindow.h"
+#include "console.h"
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
{
}
void MainWindow::about()
{
- QMessageBox::about(this, tr("About qt-console"),
- tr("<h2>Qt_console 0.1</h2>"
- "<p>Copyright © 2007 Free Software Foundation Europe e.V."
- "<p>The <b>qt-console</b> is an administrative"
+ QMessageBox::about(this, tr("About bat"),
+ tr("<h2>bat 0.1</h2>"
+ "<p>Copyright © " BYEAR " Free Software Foundation Europe e.V."
+ "<p>The <b>bat</b> is an administrative console"
" interface to the Director."));
}