~ubuntu-branches/ubuntu/quantal/kdevplatform/quantal-proposed

« back to all changes in this revision

Viewing changes to plugins/snippet/snippet.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-24 00:06:18 UTC
  • mfrom: (0.3.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101024000618-7otebin77mfcmt3b
Tags: 1.1.0-0ubuntu1
* New upstream release
  - Bump build-dependencies
  - Build against libboost-serialization1.42-dev
  - Update kdevplatform1-libs.install
  - Update kdevplatform-dev.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include <QStandardItem>
16
16
 
17
17
class SnippetRepository;
 
18
class KAction;
18
19
 
19
20
/**
20
21
 * One object of this class represents a single snippet.
71
72
     */
72
73
    void setArguments(const QString& arguments);
73
74
 
 
75
    /**
 
76
     * Action to trigger insertion of this snippet.
 
77
     */
 
78
    KAction* action();
 
79
 
74
80
    virtual QVariant data(int role = Qt::UserRole + 1) const;
75
81
 
76
82
private:
82
88
    QString m_prefix;
83
89
    /// the display arguments aka \code<displayarguments>\endcode
84
90
    QString m_arguments;
 
91
    /// the insertion action for this snippet.
 
92
    KAction* m_action;
85
93
};
86
94
 
 
95
Q_DECLARE_METATYPE ( Snippet* )
 
96
 
87
97
#endif