~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to kicker/libkicker/menuinfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-27 12:09:48 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080527120948-dottsyd5rcwhzd36
Tags: 4:4.0.80-1ubuntu1
* Merge with Debian
 - remove 97_fix_target_link_libraries.diff
 - Add replaces/conflicts on -kde4 packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************
2
 
 
3
 
Copyright (c) 1996-2000 the kicker authors. See file AUTHORS.
4
 
 
5
 
Permission is hereby granted, free of charge, to any person obtaining a copy
6
 
of this software and associated documentation files (the "Software"), to deal
7
 
in the Software without restriction, including without limitation the rights
8
 
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
 
copies of the Software, and to permit persons to whom the Software is
10
 
furnished to do so, subject to the following conditions:
11
 
 
12
 
The above copyright notice and this permission notice shall be included in
13
 
all copies or substantial portions of the Software.
14
 
 
15
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
 
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19
 
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
 
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
 
 
22
 
******************************************************************/
23
 
 
24
 
#ifndef _menuinfo_h_
25
 
#define _menuinfo_h_
26
 
 
27
 
#include <qstring.h>
28
 
 
29
 
#include <kdemacros.h>
30
 
 
31
 
class KPanelMenu;
32
 
class QWidget;
33
 
 
34
 
class KDE_EXPORT MenuInfo
35
 
{
36
 
public:
37
 
    MenuInfo(const QString& desktopFile);
38
 
 
39
 
    QString name() const    { return name_; }
40
 
    QString comment() const { return comment_; }
41
 
    QString icon() const    { return icon_; }
42
 
    QString library() const { return library_; }
43
 
    QString desktopFile() const { return desktopfile_; }
44
 
    bool isValid() const    { return !name_.isEmpty(); }
45
 
 
46
 
    KPanelMenu* load(QWidget *parent = 0, const char *name = 0);
47
 
 
48
 
private:
49
 
    QString name_, comment_, icon_, library_, desktopfile_;
50
 
};
51
 
 
52
 
#endif