/home/croftj/photogrotto/main.cpp

00001 /*********************************************************************************
00002 **
00003 **   $Id: //depot/WorkInProgress/photogrotto/main.cpp#2 $
00004 **   Copyright (c) 2007 Joe Croft joe@croftj.net
00005 **   
00006 **   This file is part of Photogrotto
00007 **
00008 **   Photogrotto is free software; you can redistribute it and/or modify
00009 **   it under the terms of the GNU General Public License as published by
00010 **   the Free Software Foundation; either version 2 of the License, or
00011 **   (at your option) any later version.
00012 **
00013 **   Foobar is distributed in the hope that it will be useful,
00014 **   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 **   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 **   GNU General Public License for more details.
00017 **
00018 **   You should have received a copy of the GNU General Public License
00019 **   along with Foobar; if not, write to the Free Software
00020 **   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021 **
00022 *********************************************************************************/
00023 
00024 # include <QCoreApplication>
00025 
00026 # include "dbPhotoService.h"
00027 # include "photogrotto.h"
00028 
00029 int main( int argc, char ** argv )
00030 {
00031    QString confName;
00032    QCoreApplication a( argc, argv );
00033    QStringList args = a.arguments();
00034    for (int x = 0; x < args.count(); x++) 
00035    {
00036       if ( args[x] == "-f" ) 
00037       {
00038          if ( ++x < args.count() ) 
00039          {
00040             confName = args[x];
00041          }
00042       }
00043    }
00044    PhotoGrotto server(confName, NULL);
00045    a.exec();
00046 }

Generated on Fri May 4 11:21:12 2007 for PhotoGrotto by  doxygen 1.5.0