KDevLicense Class Reference
#include <kdevlicense.h>
Collaboration diagram for KDevLicense:

Public Member Functions | |
| KDevLicense (const QString &name, const QString &fileName) | |
| Constructs a KDevLicense and loads the given file into m_rawLines. | |
| QString | assemble (KDevFile::CommentingStyle commentingStyle, const QString &author, const QString &email, int leadingSpaces) |
| Assembles the license to a string suiteable for replacement of a $LICENSE$ tag. | |
| QString | name () const |
| returns the name of this license. | |
| QStringList | copyFiles () |
| returns list of files tat must be present in the project's root directory if any source files uses this license. | |
Private Member Functions | |
| void | readFile (const QString &fileName) |
Private Attributes | |
| QString | m_name |
| Name of this license. | |
| QStringList | m_rawLines |
| Raw lines of the license. | |
| QStringList | m_copyFiles |
| List of files that must be added to the project, if any file in the project uses this license. | |
Constructor & Destructor Documentation
|
||||||||||||
|
Constructs a KDevLicense and loads the given file into m_rawLines.
Definition at line 26 of file kdevlicense.cpp. References readFile(). |
Member Function Documentation
|
||||||||||||||||||||
|
Assembles the license to a string suiteable for replacement of a $LICENSE$ tag.
Definition at line 61 of file kdevlicense.cpp. References m_rawLines. Referenced by AppWizardDialog::licenseChanged(). |
|
|
returns list of files tat must be present in the project's root directory if any source files uses this license.
Definition at line 52 of file kdevlicense.h. Referenced by AppWizardDialog::accept(). |
|
|
returns the name of this license.
Definition at line 46 of file kdevlicense.h. |
|
|
Definition at line 32 of file kdevlicense.cpp. References m_copyFiles, and m_rawLines. Referenced by KDevLicense(). |
Member Data Documentation
|
|
List of files that must be added to the project, if any file in the project uses this license.
Definition at line 71 of file kdevlicense.h. Referenced by readFile(). |
|
|
Name of this license.
Definition at line 61 of file kdevlicense.h. |
|
|
Raw lines of the license. Should contain no spaces at the start or end of each line. Definition at line 66 of file kdevlicense.h. Referenced by assemble(), and readFile(). |
The documentation for this class was generated from the following files:
- lib/interfaces/kdevlicense.h
- lib/interfaces/kdevlicense.cpp
