Changeset View
Changeset View
Standalone View
Standalone View
src/lib/util/kuser.h
Show First 20 Lines • Show All 394 Lines • ▼ Show 20 Line(s) | 350 | #endif | |||
---|---|---|---|---|---|
395 | QVariant property(UserProperty which) const; | 395 | QVariant property(UserProperty which) const; | ||
396 | 396 | | |||
397 | /** | 397 | /** | ||
398 | * Destructor. | 398 | * Destructor. | ||
399 | */ | 399 | */ | ||
400 | ~KUser(); | 400 | ~KUser(); | ||
401 | 401 | | |||
402 | /** | 402 | /** | ||
403 | * @author ahmedbilal | ||||
404 | * | ||||
405 | * Return username of a user whose full name is given as argument | ||||
406 | * | ||||
407 | * @param fullname Full Name of user who username you want to get | ||||
408 | * | ||||
409 | * @return username corresponding to full name or "" if no user | ||||
410 | * found with such fullname | ||||
411 | */ | ||||
412 | static QString usernameFromFullname(QString fullname); | ||||
svuorela: What happens if multiple users have the same full name? | |||||
413 | /** | ||||
403 | * @param maxCount the maximum number of users to return | 414 | * @param maxCount the maximum number of users to return | ||
404 | * @return all users of the system. | 415 | * @return all users of the system. | ||
405 | */ | 416 | */ | ||
406 | static QList<KUser> allUsers(uint maxCount = KCOREADDONS_UINT_MAX); | 417 | static QList<KUser> allUsers(uint maxCount = KCOREADDONS_UINT_MAX); | ||
407 | 418 | | |||
408 | /** | 419 | /** | ||
409 | * @param maxCount the maximum number of users to return | 420 | * @param maxCount the maximum number of users to return | ||
410 | * @return all user names of the system. | 421 | * @return all user names of the system. | ||
▲ Show 20 Lines • Show All 229 Lines • Show Last 20 Lines |
What happens if multiple users have the same full name?