~ubuntu-branches/ubuntu/raring/recorditnow/raring

« back to all changes in this revision

Viewing changes to joschy-snapshot-23-02-10/joschycore/joschycore/joschy.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-09 14:54:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110109145401-gyckb4airz4fio50
Tags: 0.8.1-0ubuntu1
* New upstream release. (LP: #681270)
  - Update debian/copyright.
* Build-depend on recordmydesktop.
* Add a watch file.
* Drop 01_fix_ftbfs_kwarning_call.diff, fixed upstream.
* Add 01_joschy_install_to_usr_lib.diff.
* Add 02_fix_ftbfs_no-add-needed.diff.
* Add 03_dont_install_header_files.diff.
* Replace dependency on libpolkit-qt-1-0 with policykit-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (C) 2010  Kai Dombrowe <just89@gmx.de>
 
3
 
 
4
    This library is free software; you can redistribute it and/or
 
5
    modify it under the terms of the GNU Lesser General Public
 
6
    License as published by the Free Software Foundation; either
 
7
    version 2.1 of the License, or (at your option) any later version.
 
8
 
 
9
    This library is distributed in the hope that it will be useful,
 
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
    Lesser General Public License for more details.
 
13
 
 
14
    You should have received a copy of the GNU Lesser General Public
 
15
    License along with this library; if not, write to the Free Software
 
16
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
17
*/
 
18
 
 
19
 
 
20
// own
 
21
#include "joschy.h"
 
22
 
 
23
// Qt
 
24
#include <QtCore/QDir>
 
25
#include <QtCore/QCoreApplication>
 
26
 
 
27
 
 
28
namespace Joschy {
 
29
 
 
30
 
 
31
QStringList pluginDirs()
 
32
{
 
33
 
 
34
    QStringList dirs;
 
35
    dirs.append(JOSCHY_PLUGINDIR);
 
36
    dirs.append(QCoreApplication::applicationDirPath()+QDir::separator()+"joschy");
 
37
 
 
38
    foreach (const QString &path, QCoreApplication::libraryPaths()) {
 
39
        dirs.append(path+QDir::separator()+"joschy");
 
40
    }
 
41
    dirs.removeDuplicates();
 
42
 
 
43
    return dirs;
 
44
 
 
45
}
 
46
 
 
47
 
 
48
 
 
49
} // namespace Joschy