source: trunk/SapphireMedia.m @ 201

Revision 201, 686 bytes checked in by gbooker, 7 years ago (diff)

Changed all www.nanopi.net to www.nanopi.net

Line 
1//
2//  SapphireMedia.m
3//  Sapphire
4//
5//  Created by Graham Booker on 6/25/07.
6//  Copyright 2007 www.nanopi.net. All rights reserved.
7//
8
9#import "SapphireMedia.h"
10
11
12@implementation SapphireMedia
13
14/*!
15 * @brief Set the resume time for the media
16 *
17 * @param time the time at which to resume
18 */
19- (void)setResumeTime:(unsigned int)time
20{
21        resumeTime = time;
22}
23
24/*!
25 * @brief Overrides the bookmark time
26 *
27 * @return The resume time if exists, otherwise the bookmark time
28 */
29- (unsigned int)bookmarkTimeInSeconds
30{
31        /*Check for resume time and if none, return bookmark time*/
32        if(time == 0)
33                return [super bookmarkTimeInSeconds];
34        /*return resume time*/
35        return resumeTime;
36}
37
38@end
Note: See TracBrowser for help on using the repository browser.