@@ -7,11 +7,11 @@ * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ -#include +#include #import "OFObject.h" @class OFString; @@ -492,19 +492,19 @@ * \brief An exception indicating that changing the owner of a file failed. */ @interface OFChangeFileOwnerFailedException: OFException { OFString *path; - uid_t owner; - gid_t group; + OFString *owner; + OFString *group; int errNo; } #ifdef OF_HAVE_PROPERTIES @property (readonly, nonatomic) OFString *path; -@property (readonly) uid_t owner; -@property (readonly) gid_t group; +@property (readonly, nonatomic) OFString *owner; +@property (readonly, nonatomic) OFString *group; @property (readonly) int errNo; #endif /** * \param class_ The class of the object which caused the exception @@ -513,12 +513,12 @@ * \param group The new group for the file * \return An initialized change file owner failed exception */ + newWithClass: (Class)class_ path: (OFString*)path - owner: (uid_t)owner - group: (gid_t)group; + owner: (OFString*)owner + group: (OFString*)group; /** * Initializes an already allocated change file owner failed exception. * * \param class_ The class of the object which caused the exception @@ -527,12 +527,12 @@ * \param group The new group for the file * \return An initialized change file owner failed exception */ - initWithClass: (Class)class_ path: (OFString*)path - owner: (uid_t)owner - group: (gid_t)group; + owner: (OFString*)owner + group: (OFString*)group; /** * \return The errno from when the exception was created */ - (int)errNo; @@ -543,16 +543,16 @@ - (OFString*)path; /** * \return The new owner for the file */ -- (uid_t)owner; +- (OFString*)owner; /** * \return The new group for the file */ -- (gid_t)group; +- (OFString*)group; @end #endif /** * \brief An exception indicating that copying a file failed.