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

« back to all changes in this revision

Viewing changes to plugins/snippet/snippetrepository.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:
18
18
 
19
19
class Snippet;
20
20
 
 
21
namespace KTextEditor
 
22
{
 
23
class TemplateScript;
 
24
}
 
25
 
21
26
/**
22
27
 * Each object of this type represents a repository of snippets. Each repository
23
28
 * has a name and will be saved to an XML file that includes all items of this repository.
87
92
    const QString& file() const;
88
93
 
89
94
    /**
 
95
     * The namespace associated with this repository.
 
96
     * Used in CodeCompletion for filtering.
 
97
     */
 
98
    QString completionNamespace() const;
 
99
    /**
 
100
     * Sets the code completion namespace for this repository.
 
101
     */
 
102
    void setCompletionNamespace(const QString& completionNamespace);
 
103
 
 
104
    /**
 
105
     * The QtScript(s) associated with this repository.
 
106
     *
 
107
     * @since KDE 4.5
 
108
     */
 
109
    QString script() const;
 
110
    /**
 
111
     * The token identifying the script in this repository.
 
112
     */
 
113
    KTextEditor::TemplateScript* registeredScript() const;
 
114
    /**
 
115
     * Sets the QtScript(s) associated with this repository.
 
116
     * 
 
117
     * @since KDE 4.5
 
118
     */
 
119
    void setScript(const QString& script);
 
120
 
 
121
    /**
90
122
     * Remove this repository from the disk. Also deletes the item and all its children.
91
123
     */
92
124
    void remove();
112
144
    QString m_authors;
113
145
    /// valid filetypes for the snippets in this repo
114
146
    QStringList m_filetypes;
 
147
    /// filtering namespace for code completion
 
148
    QString m_namespace;
 
149
    /// QtScript with functions to be used in the snippet
 
150
    QString m_script;
 
151
    /// registered script
 
152
    KTextEditor::TemplateScript* m_registeredScript;
115
153
};
116
154
 
117
155
#endif