~ubuntu-branches/ubuntu/quantal/arora/quantal

« back to all changes in this revision

Viewing changes to src/utils/singleapplication.h

  • Committer: Bazaar Package Importer
  • Author(s): Roderick B. Greening
  • Date: 2009-10-01 16:08:58 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20091001160858-h1wnt3ddyzl07nih
Tags: 0.10.0-0ubuntu1
* New upstream release 
* Remove patches
  - kubuntu_01_google_lucky.diff - Open Search now used upstream
  - kubuntu_02_default_bookmarks.diff - bookmarks fixed upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * Copyright (c) 2008, Benjamin C. Meyer
 
2
 * Copyright (c) 2008-2009, Benjamin C. Meyer
3
3
 *
4
4
 * Redistribution and use in source and binary forms, with or without
5
5
 * modification, are permitted provided that the following conditions
36
36
    instant of the application to exist at a time.
37
37
*/
38
38
class QLocalServer;
 
39
class QLocalSocket;
39
40
class SingleApplication : public QApplication
40
41
{
41
42
    Q_OBJECT
42
43
 
43
44
signals:
44
 
    void messageReceived(const QString &message);
 
45
    void messageReceived(QLocalSocket *socket);
45
46
 
46
47
public:
47
48
    SingleApplication(int &argc, char **argv);
48
49
 
49
 
    bool sendMessage(const QString &message);
 
50
    bool sendMessage(const QByteArray &message, int waitMsecsForReply = 0);
50
51
    bool startSingleServer();
51
52
    bool isRunning() const;
52
53