• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDECore

kuser_wince.cpp

Go to the documentation of this file.
00001 /*
00002  *  KUser - represent a user/account (Windows)
00003  *  Copyright (C) 2010 Andreas Holzammer <andreas.holzammer@kdab.com>
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Library General Public
00007  *  License as published by the Free Software Foundation; either
00008  *  version 2 of the License, or (at your option) any later version.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public License
00016  *  along with this library; see the file COPYING.LIB.  If not, write to
00017  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  *  Boston, MA 02110-1301, USA.
00019  */
00020 
00021 #include "kuser.h"
00022 
00023 #include <QStringList>
00024 
00025 
00026 class KUser::Private : public KShared
00027 {
00028 };
00029 
00030 KUser::KUser(UIDMode mode)
00031         : d(0)
00032 {
00033     Q_UNUSED(mode)
00034 }
00035 
00036 KUser::KUser(K_UID uid)
00037     : d(0)
00038 {
00039     Q_UNUSED(uid)
00040 }
00041 
00042 KUser::KUser(const QString &name)
00043     : d(0)
00044 {
00045 }
00046 
00047 KUser::KUser(const char *name)
00048     :d(0)
00049 {
00050 }
00051 
00052 KUser::KUser(const KUser &user)
00053     : d(user.d)
00054 {
00055 }
00056 
00057 KUser &KUser::operator=(const KUser &user)
00058 {
00059     d = user.d;
00060     return *this;
00061 }
00062 
00063 bool KUser::operator==(const KUser &user) const
00064 {
00065     if (!isValid() || !user.isValid())
00066         return false;
00067     return true;
00068 }
00069 
00070 bool KUser::operator !=(const KUser &user) const
00071 {
00072     return !operator==(user);
00073 }
00074 
00075 bool KUser::isValid() const
00076 {
00077     return true;
00078 }
00079 
00080 bool KUser::isSuperUser() const
00081 {
00082     return true;
00083 }
00084 
00085 QString KUser::loginName() const
00086 {
00087     return QString("default");
00088 }
00089 
00090 #ifndef KDE_NO_DEPRECATED
00091 QString KUser::fullName() const
00092 {
00093     return QString("default");
00094 }
00095 #endif
00096 
00097 QString KUser::homeDir() const
00098 {
00099     return QString("\\Documents and Settings\\default");
00100 }
00101 
00102 QString KUser::faceIconPath() const
00103 {
00104     return QString();
00105 }
00106 
00107 QString KUser::shell() const
00108 {
00109     return QString::fromAscii("cmd.exe");
00110 }
00111 
00112 QList<KUserGroup> KUser::groups() const
00113 {
00114     return QList<KUserGroup>();
00115 }
00116 
00117 QStringList KUser::groupNames() const
00118 {
00119     return QStringList();
00120 }
00121 
00122 K_UID KUser::uid() const
00123 {
00124     return (K_UID)100;
00125 }
00126 
00127 QVariant KUser::property(UserProperty which) const
00128 {
00129     return QVariant();
00130 }
00131 
00132 QList<KUser> KUser::allUsers()
00133 {
00134     QList<KUser> result;
00135 
00136     result.append(KUser());
00137 
00138     return result;
00139 }
00140 
00141 QStringList KUser::allUserNames()
00142 {
00143     QStringList result;
00144 
00145     result.append("wince");
00146 
00147     return result;
00148 }
00149 
00150 KUser::~KUser()
00151 {
00152 }
00153 
00154 class KUserGroup::Private : public KShared
00155 {
00156 };
00157 
00158 KUserGroup::KUserGroup(const QString &_name)
00159     : d(0)
00160 {
00161 }
00162 
00163 KUserGroup::KUserGroup(const char *_name)
00164     : d(0)
00165 {
00166 }
00167 
00168 KUserGroup::KUserGroup(const KUserGroup &group)
00169     : d(0)
00170 {
00171 }
00172 
00173 KUserGroup& KUserGroup::operator =(const KUserGroup &group)
00174 {
00175     d = group.d;
00176     return *this;
00177 }
00178 
00179 bool KUserGroup::operator==(const KUserGroup &group) const
00180 {
00181 
00182     return true;
00183 }
00184 
00185 bool KUserGroup::operator!=(const KUserGroup &group) const
00186 {
00187     return !operator==(group);
00188 }
00189 
00190 bool KUserGroup::isValid() const
00191 {
00192     return true;
00193 }
00194 
00195 QString KUserGroup::name() const
00196 {
00197     return QString("wince");
00198 }
00199 
00200 QList<KUser> KUserGroup::users() const
00201 {
00202     QList<KUser> Result;
00203 
00204     Result.append(KUser());
00205 
00206     return Result;
00207 }
00208 
00209 QStringList KUserGroup::userNames() const
00210 {
00211     QStringList result;
00212 
00213     result.append("default");
00214 
00215     return result;
00216 }
00217 
00218 QList<KUserGroup> KUserGroup::allGroups()
00219 {
00220     QList<KUserGroup> result;
00221 
00222     result.append(KUserGroup(""));
00223 
00224     return result;
00225 }
00226 
00227 QStringList KUserGroup::allGroupNames()
00228 {
00229     QStringList result;
00230 
00231     result.append("wince");
00232 
00233     return result;
00234 }
00235 
00236 KUserGroup::~KUserGroup()
00237 {
00238 }

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal