Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE PIM Add-ons
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
KDE PIM Add-ons
Commits
5efeefbd
Commit
5efeefbd
authored
Feb 22, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create a job for creating folder
parent
97872036
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
141 additions
and
0 deletions
+141
-0
sieveeditor/imapfoldercompletion/CMakeLists.txt
sieveeditor/imapfoldercompletion/CMakeLists.txt
+1
-0
sieveeditor/imapfoldercompletion/autotests/CMakeLists.txt
sieveeditor/imapfoldercompletion/autotests/CMakeLists.txt
+1
-0
sieveeditor/imapfoldercompletion/autotests/selectimapcreatejobtest.cpp
...mapfoldercompletion/autotests/selectimapcreatejobtest.cpp
+34
-0
sieveeditor/imapfoldercompletion/autotests/selectimapcreatejobtest.h
.../imapfoldercompletion/autotests/selectimapcreatejobtest.h
+33
-0
sieveeditor/imapfoldercompletion/selectimapcreatejob.cpp
sieveeditor/imapfoldercompletion/selectimapcreatejob.cpp
+37
-0
sieveeditor/imapfoldercompletion/selectimapcreatejob.h
sieveeditor/imapfoldercompletion/selectimapcreatejob.h
+34
-0
sieveeditor/imapfoldercompletion/selectimapfolderwidget.cpp
sieveeditor/imapfoldercompletion/selectimapfolderwidget.cpp
+1
-0
No files found.
sieveeditor/imapfoldercompletion/CMakeLists.txt
View file @
5efeefbd
...
...
@@ -18,6 +18,7 @@ set(imapfoldercompletionplugin_SRCS
selectimapfoldermodel.cpp
selectimaplineedit.cpp
selectimaplineeditcompletermodel.cpp
selectimapcreatejob.cpp
${
sieveeditor_plugin_categories_SRCS
}
)
...
...
sieveeditor/imapfoldercompletion/autotests/CMakeLists.txt
View file @
5efeefbd
...
...
@@ -12,3 +12,4 @@ add_sieveeditorplugin_unittest(selectimapfolderdialogtest.cpp "../selectimapline
add_sieveeditorplugin_unittest
(
selectimapfolderwidgettest.cpp
"../selectimaplineedit.cpp;../selectimaplineeditcompletermodel.cpp;../selectimapfolderwidget.cpp;../selectitemfolderjob.cpp;../selectimapfoldermodel.cpp"
)
add_sieveeditorplugin_unittest
(
selectimapwidgettest.cpp
"../selectimaplineedit.cpp;../selectimaplineeditcompletermodel.cpp;../selectimapwidget.cpp;../selectimapfolderdialog.cpp;../selectimapfolderwidget.cpp;../selectitemfolderjob.cpp;../selectimapfoldermodel.cpp"
)
add_sieveeditorplugin_unittest
(
selectimapfoldermodeltest.cpp
"../selectimapfoldermodel.cpp;../selectitemfolderjob.cpp"
)
add_sieveeditorplugin_unittest
(
selectimapcreatejobtest.cpp
"../selectimapcreatejob.cpp"
)
sieveeditor/imapfoldercompletion/autotests/selectimapcreatejobtest.cpp
0 → 100644
View file @
5efeefbd
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "selectimapcreatejobtest.h"
#include <QTest>
SelectImapCreateJobTest
::
SelectImapCreateJobTest
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
SelectImapCreateJobTest
::~
SelectImapCreateJobTest
()
{
}
QTEST_MAIN
(
SelectImapCreateJobTest
)
sieveeditor/imapfoldercompletion/autotests/selectimapcreatejobtest.h
0 → 100644
View file @
5efeefbd
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef SELECTIMAPCREATEJOBTEST_H
#define SELECTIMAPCREATEJOBTEST_H
#include <QObject>
class
SelectImapCreateJobTest
:
public
QObject
{
Q_OBJECT
public:
explicit
SelectImapCreateJobTest
(
QObject
*
parent
=
nullptr
);
~
SelectImapCreateJobTest
();
};
#endif // SELECTIMAPCREATEJOBTEST_H
sieveeditor/imapfoldercompletion/selectimapcreatejob.cpp
0 → 100644
View file @
5efeefbd
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "selectimapcreatejob.h"
SelectImapCreateJob
::
SelectImapCreateJob
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
SelectImapCreateJob
::~
SelectImapCreateJob
()
{
}
void
SelectImapCreateJob
::
start
()
{
}
sieveeditor/imapfoldercompletion/selectimapcreatejob.h
0 → 100644
View file @
5efeefbd
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef SELECTIMAPCREATEJOB_H
#define SELECTIMAPCREATEJOB_H
#include <QObject>
class
SelectImapCreateJob
:
public
QObject
{
Q_OBJECT
public:
explicit
SelectImapCreateJob
(
QObject
*
parent
=
nullptr
);
~
SelectImapCreateJob
();
void
start
();
};
#endif // SELECTIMAPCREATEJOB_H
sieveeditor/imapfoldercompletion/selectimapfolderwidget.cpp
View file @
5efeefbd
...
...
@@ -123,6 +123,7 @@ void SelectImapFolderWidget::createFolder()
if
(
!
name
.
trimmed
().
isEmpty
())
{
//TODO more check for folder name ?
//TODO create it
SelectImapFolderModel
::
self
()
->
createNewFolder
(
name
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment