summaryrefslogtreecommitdiffstats
path: root/kdict/application.h
blob: eddb7f44ba4973a73086047a9b910565ab098eee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* -------------------------------------------------------------

   application.h (part of The KDE Dictionary Client)

   Copyright (C) 2000-2001 Christian Gebauer <gebauer@kde.org>

   This file is distributed under the Artistic License.
   See LICENSE for details.

 ------------------------------------------------------------- */

#ifndef APPLICATION_H
#define APPLICATION_H

#include <kuniqueapplication.h>
#include <qguardedptr.h>

#define KDICT_VERSION "0.6"

class TopLevel;

class Application : public KUniqueApplication
{
  Q_OBJECT

  public:
    Application();
    ~Application();

    /** Create new instance of Kdict. Make the existing
        main window active if Kdict is already running */
    int newInstance();

  private:
    QGuardedPtr<TopLevel> m_mainWindow;

};

#endif