/////////////////////////////////////////////////////////////////////////////
// Name:        cmnsymbols.h
// Purpose:     Some symbols common to wxPackager, wxPackageManager and WXP
//              applications
// Author:      Francesco Montorsi
// Modified by:
// Created:     2006-06-22
// RCS-ID:      $Id: cmnsymbols.h,v 1.5 2007/01/28 22:15:41 frm Exp $
// Copyright:   (c) Francesco Montorsi
// Licence:     wxWidgets license
/////////////////////////////////////////////////////////////////////////////

#ifndef _COMMON_SYMBOLS_H_
#define _COMMON_SYMBOLS_H_

// App name; this is not really the name of the three applications;
// it's used with wxApp::SetAppName() as the three apps needs to share
// the same installation directory (and wxStandardPaths will use
// wxApp::GetName to return all app-specific directories), but each
// app has a separate name.
#define APPNAME                     wxT("wxPackageManagementSuite")

// Version; for packaging purposes, the version needs to be the same for
// all three applications.
#define VERSION_NUMBER              0.2
#define VERSION_STRING              wxT("0.2")

// The copyright shown in the about dialog of the three apps:
#define COPYRIGHT                   wxT("Francesco Montorsi (c) 2006-2007")

// The website shown in the about dialog of the three apps:
#define WEBSITE                     wxT("http://wxwpm.sourceforge.net/")

// Name of preset file loaded at startup with defaults
#define DEFAULT_PRESETS             wxT("presets.xml")

// Name of the file appended to the URLs which terminate with '/' when
// downloading the WXL repo descriptor:
#define DEFAULT_WXL_FILENAME        wxT("packages.wxl")

// The default URL for the WXL repo file:
#define DEFAULT_REPO_URL            wxT("http://wxwpm.sourceforge.net/packages/")


// ----------------------------------------------------------------------------
// Global functions
// ----------------------------------------------------------------------------

// forward declaration
class wxAboutDialogInfo;

// all three apps share the same config object; this allow e.g. to use
// the WXP application with the local repo defined using wxPackageManager
// VERY IMPORTANT: don't use as first argument of wxConfig() constructor
//                 APPNAME otherwise the user data dir returned by wxStandardPaths
//                 and the configuration file will coincide under Unix
void SetGlobalConfig();

// set some common info in the wxAboutDialogInfo object
void SetGlobalAboutInfo(wxAboutDialogInfo &info);


#endif      // _COMMON_SYMBOLS_H_
