1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
* Copyright (c) 2008 - 2009
* Jonathan Schleifer <js@webkeks.org>
*
* All rights reserved.
*
* 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.
*/
#import "OFObject.h"
#import "OFFile.h"
@class OFString;
/**
* An exception indicating an object could not be allocated.
*
* This exception is preallocated, as if there's no memory, no exception can
|
>
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* Copyright (c) 2008 - 2009
* Jonathan Schleifer <js@webkeks.org>
*
* All rights reserved.
*
* 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 <sys/stat.h>
#import "OFObject.h"
@class OFString;
/**
* An exception indicating an object could not be allocated.
*
* This exception is preallocated, as if there's no memory, no exception can
|
︙ | | | ︙ | |
374
375
376
377
378
379
380
381
382
383
384
385
386
387
|
/**
* \return The new mode for the file
*/
- (mode_t)mode;
@end
/**
* An OFException indicating that changing the owner of the file failed.
*/
@interface OFChangeFileOwnerFailedException: OFException
{
OFString *path;
uid_t owner;
|
>
|
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
|
/**
* \return The new mode for the file
*/
- (mode_t)mode;
@end
#ifndef _WIN32
/**
* An OFException indicating that changing the owner of the file failed.
*/
@interface OFChangeFileOwnerFailedException: OFException
{
OFString *path;
uid_t owner;
|
︙ | | | ︙ | |
431
432
433
434
435
436
437
438
439
440
441
442
443
444
|
- (uid_t)owner;
/**
* \return The new group for the file
*/
- (gid_t)group;
@end
/**
* An OFException indicating that renaming a file failed.
*/
@interface OFRenameFileFailedException: OFException
{
OFString *from;
|
>
|
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
|
- (uid_t)owner;
/**
* \return The new group for the file
*/
- (gid_t)group;
@end
#endif
/**
* An OFException indicating that renaming a file failed.
*/
@interface OFRenameFileFailedException: OFException
{
OFString *from;
|
︙ | | | ︙ | |
518
519
520
521
522
523
524
525
526
527
528
529
530
531
|
/**
* \return The path of the file
*/
- (OFString*)path;
@end
/**
* An OFException indicating that creating a link failed.
*/
@interface OFLinkFailedException: OFException
{
OFString *src;
OFString *dest;
|
>
|
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
|
/**
* \return The path of the file
*/
- (OFString*)path;
@end
#ifndef _WIN32
/**
* An OFException indicating that creating a link failed.
*/
@interface OFLinkFailedException: OFException
{
OFString *src;
OFString *dest;
|
︙ | | | ︙ | |
613
614
615
616
617
618
619
620
621
622
623
624
625
626
|
- (OFString*)source;
/**
* \return A string of the destination for the symlink
*/
- (OFString*)destination;
@end
/**
* An OFException indicating that setting an option failed.
*/
@interface OFSetOptionFailedException: OFException {}
@end
|
>
|
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
|
- (OFString*)source;
/**
* \return A string of the destination for the symlink
*/
- (OFString*)destination;
@end
#endif
/**
* An OFException indicating that setting an option failed.
*/
@interface OFSetOptionFailedException: OFException {}
@end
|
︙ | | | ︙ | |