DxRightsInfo.h
1 /*
2  Copyright
3  This code is strictly confidential and the receiver is obliged to use it
4  exclusively for his or her own purposes. No part of Viaccess Orca code may
5  be reproduced or transmitted in any form or by any means, electronic or
6  mechanical, including photocopying, recording, or by any information storage
7  and retrieval system, without permission in writing from Viaccess Orca.
8  The information in this code is subject to change without notice. Viaccess
9  Orca does not warrant that this code is error free. If you find any problems
10  with this code or wish to make comments, please report them to Viaccess
11  Orca.
12 
13  Trademarks
14  Viaccess Orca is a registered trademark of Viaccess S.A in France and/or
15  other countries. All other product and company names mentioned herein are the
16  trademarks of their respective owners.
17  Viaccess S.A may hold patents, patent applications, trademarks, copyrights
18  or other intellectual property rights over the code hereafter. Unless
19  expressly specified otherwise in a Viaccess Orca written license agreement,
20  the delivery of this code does not imply the concession of any license over
21  these patents, trademarks, copyrights or other intellectual property.
22  */
23 
29 #import <Foundation/Foundation.h>
30 
31 typedef enum {
32  DxRightsStatusNotValid,
33  DxRightsStatusClockNotSet,
34  DxRightsStatusExpired,
35  DxRightsStatusFuture,
36  DxRightsStatusValid
37 } DxRightsStatus;
38 
39 
52 @interface DxRightsInfo : NSObject {
53  DxRightsStatus rightsStatus;
54 
58 
59  NSDate *startTime;
60  NSDate *endTime;
62 
63  unsigned int initialCount;
64  unsigned int countLeft;
65 }
66 
72 - (id)initWithRightsObject:(const void*)rightsObject;
73 
75 @property (readonly, assign) DxRightsStatus rightsStatus;
76 
78 @property (readonly, assign) BOOL isTimeConstrained;
80 @property (readonly, assign) BOOL isIntervalConstrained;
82 @property (readonly, assign) BOOL isCountConstrained;
83 
85 @property (readonly, retain) NSDate *startTime;
87 @property (readonly, retain) NSDate *endTime;
89 @property (readonly, assign) unsigned int intervalPeriodInSeconds;
91 @property (readonly, assign) unsigned int initialCount;
93 @property (readonly, assign) unsigned int countLeft;
94 
95 @end
BOOL isTimeConstrained
Indicates whether the license has time constraints, hence start from a certain date and end in other...
Definition: DxRightsInfo.h:55
BOOL isIntervalConstrained
Indicates whether the license has interval constraints, hence how much time from current time can we ...
Definition: DxRightsInfo.h:56
BOOL isCountConstrained
Indicates whether the license has count constraints, hence how many times can we play the media...
Definition: DxRightsInfo.h:57
NSDate * endTime
End date of the time constrained license. Valid only if license is time constrained. Note: End date is expressed as the Coordinated Universal Time (UTC).
Definition: DxRightsInfo.h:60
unsigned int countLeft
Indicates how many times could the content be played from now. Valid only if license is count constra...
Definition: DxRightsInfo.h:64
NSDate * startTime
Start date of the time constrained license. Valid only if license is time constrained. Note: Start date is expressed as the Coordinated Universal Time (UTC).
Definition: DxRightsInfo.h:59
unsigned int intervalPeriodInSeconds
Indicates how much time do we have in seconds till the license becomes invalid. Valid only if license...
Definition: DxRightsInfo.h:61
DxRightsStatus rightsStatus
Rights Information status.
Definition: DxRightsInfo.h:53
DxRightsInfo is an object that contains a set of permissions (i.e.
Definition: DxRightsInfo.h:52
unsigned int initialCount
Indicates how many times could the content be played since it was purchased. Valid only if license is...
Definition: DxRightsInfo.h:63