~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to kde/src/lib/certificate.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
 *   Copyright (C) 2014 by Savoir-Faire Linux                               *
 
3
 *   Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
 
4
 *                                                                          *
 
5
 *   This library is free software; you can redistribute it and/or          *
 
6
 *   modify it under the terms of the GNU Lesser General Public             *
 
7
 *   License as published by the Free Software Foundation; either           *
 
8
 *   version 2.1 of the License, or (at your option) any later version.     *
 
9
 *                                                                          *
 
10
 *   This library is distributed in the hope that it will be useful,        *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU      *
 
13
 *   Lesser General Public License for more details.                        *
 
14
 *                                                                          *
 
15
 *   You should have received a copy of the GNU General Public License      *
 
16
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.  *
 
17
 ***************************************************************************/
 
18
#include "certificate.h"
 
19
 
 
20
#include <QtCore/QFile>
 
21
 
 
22
 
 
23
Certificate::Certificate(Certificate::Type type, const QObject* parent) : QObject(const_cast<QObject*>(parent)),m_Type(type)
 
24
{
 
25
   
 
26
}
 
27
 
 
28
bool Certificate::exist() const
 
29
{
 
30
   return QFile::exists(m_Path.toLocalFile());
 
31
}
 
32
 
 
33
QUrl Certificate::path() const
 
34
{
 
35
   return m_Path;
 
36
}
 
37
 
 
38
void Certificate::setPath(const QUrl& path)
 
39
{
 
40
   m_Path = path;
 
41
}
 
42
 
 
43
bool Certificate::isExpired() const
 
44
{
 
45
   return true; //TODO
 
46
}
 
47
 
 
48
bool Certificate::isSelfSigned() const
 
49
{
 
50
   return true; //TODO
 
51
}
 
52
 
 
53
bool Certificate::hasPrivateKey() const
 
54
{
 
55
   return false; //TODO
 
56
}
 
57
 
 
58
bool Certificate::hasProtectedPrivateKey() const
 
59
{
 
60
   return false; //TODO
 
61
}
 
62
 
 
63
bool Certificate::hasRightPermissions() const
 
64
{
 
65
   return false; //TODO
 
66
}
 
67
 
 
68
bool Certificate::hasRightFolderPermissions() const
 
69
{
 
70
   return false; //TODO
 
71
}
 
72
 
 
73
bool Certificate::isLocationSecure() const
 
74
{
 
75
   return false; //TODO
 
76
}
 
77
 
 
78
Certificate::Type Certificate::type() const
 
79
{
 
80
   return m_Type;
 
81
}