浏览代码

Remove GoogleDriveTableViewCell as it was superseeded by VLCCloudStorageTableViewCell

Felix Paul Kühne 11 年之前
父节点
当前提交
5a1d091d1c
共有 3 个文件被更改,包括 0 次插入105 次删除
  1. 0 28
      Sources/VLCGoogleDriveTableViewCell.h
  2. 0 71
      Sources/VLCGoogleDriveTableViewCell.m
  3. 0 6
      VLC for iOS.xcodeproj/project.pbxproj

+ 0 - 28
Sources/VLCGoogleDriveTableViewCell.h

@@ -1,28 +0,0 @@
-/*****************************************************************************
- * VLCGoogleDriveTableViewCell.h
- * VLC for iOS
- *****************************************************************************
- * Copyright (c) 2013 VideoLAN. All rights reserved.
- * $Id$
- *
- * Authors: Carola Nitz <nitz.carola # googlemail.com>
- *          Felix Paul Kühne <fkuehne # videolan.org>
- *
- * Refer to the COPYING file of the official project for license.
- *****************************************************************************/
-
-#import "GTLDrive.h"
-
-@interface VLCGoogleDriveTableViewCell : UITableViewCell
-
-@property (nonatomic, strong) IBOutlet UILabel *titleLabel;
-@property (nonatomic, strong) IBOutlet UILabel *folderTitleLabel;
-@property (nonatomic, strong) IBOutlet UILabel *subtitleLabel;
-@property (nonatomic, strong) IBOutlet UIImageView *thumbnailView;
-
-@property (nonatomic) GTLDriveFile *driveFile;
-
-+ (VLCGoogleDriveTableViewCell *)cellWithReuseIdentifier:(NSString *)ident;
-+ (CGFloat)heightOfCell;
-
-@end

+ 0 - 71
Sources/VLCGoogleDriveTableViewCell.m

@@ -1,71 +0,0 @@
-/*****************************************************************************
- * VLCGoogleDriveTableViewCell.m
- * VLC for iOS
- *****************************************************************************
- * Copyright (c) 2013 VideoLAN. All rights reserved.
- * $Id$
- *
- * Authors: Carola Nitz <nitz.carola # googlemail.com>
- *          Felix Paul Kühne <fkuehne # videolan.org>
- *
- * Refer to the COPYING file of the official project for license.
- *****************************************************************************/
-
-#import "VLCGoogleDriveTableViewCell.h"
-
-@implementation VLCGoogleDriveTableViewCell
-
-+ (VLCGoogleDriveTableViewCell *)cellWithReuseIdentifier:(NSString *)ident
-{
-    NSArray *nibContentArray = [[NSBundle mainBundle] loadNibNamed:@"VLCGoogleDriveTableViewCell" owner:nil options:nil];
-    NSAssert([nibContentArray count] == 1, @"meh");
-    NSAssert([[nibContentArray lastObject] isKindOfClass:[VLCGoogleDriveTableViewCell class]], @"meh meh");
-    VLCGoogleDriveTableViewCell *cell = (VLCGoogleDriveTableViewCell *)[nibContentArray lastObject];
-
-    return cell;
-}
-
-- (void)setDriveFile:(GTLDriveFile *)driveFile
-{
-    if (driveFile != _driveFile)
-        _driveFile = driveFile;
-
-    [self _updatedDisplayedInformation];
-}
-
-- (void)_updatedDisplayedInformation
-{
-    BOOL isDirectory = [self.driveFile.mimeType isEqualToString:@"application/vnd.google-apps.folder"];
-    if (isDirectory) {
-        self.folderTitleLabel.text = self.driveFile.title;
-        self.titleLabel.text = @"";
-        self.subtitleLabel.text = @"";
-    } else {
-        self.titleLabel.text = self.driveFile.title;
-        self.subtitleLabel.text = (self.driveFile.fileSize > 0) ? [NSByteCountFormatter stringFromByteCount:[self.driveFile.fileSize longLongValue] countStyle:NSByteCountFormatterCountStyleFile]: @"";
-        self.folderTitleLabel.text = @"";
-    }
-
-    NSString *iconName = self.driveFile.iconLink;
-    if ([iconName isEqualToString:@"https://ssl.gstatic.com/docs/doclist/images/icon_11_shared_collection_list.png"] || [iconName isEqualToString:@"https://ssl.gstatic.com/docs/doclist/images/icon_11_collection_list.png"]) {
-        self.thumbnailView.image = [UIImage imageNamed:@"folder"];
-    } else if ([iconName isEqualToString:@"https://ssl.gstatic.com/docs/doclist/images/icon_10_audio_list.png"]) {
-        self.thumbnailView.image = [UIImage imageNamed:@"blank"];
-    } else if ([iconName isEqualToString:@"https://ssl.gstatic.com/docs/doclist/images/icon_11_video_list.png"]) {
-        self.thumbnailView.image = [UIImage imageNamed:@"movie"];
-    } else {
-        self.thumbnailView.image = [UIImage imageNamed:@"blank"];
-        APLog(@"missing icon for type '%@'", self.driveFile.iconLink);
-    }
-    [self setNeedsDisplay];
-}
-
-+ (CGFloat)heightOfCell
-{
-    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
-        return 80.;
-
-    return 48.;
-}
-
-@end

+ 0 - 6
VLC for iOS.xcodeproj/project.pbxproj

@@ -111,7 +111,6 @@
 		7D30F3DF183AB31E00FFC021 /* VLCWiFiUploadTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D30F3DE183AB31E00FFC021 /* VLCWiFiUploadTableViewCell.m */; };
 		7D30F3E2183AB33200FFC021 /* VLCSidebarViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D30F3E1183AB33200FFC021 /* VLCSidebarViewCell.m */; };
 		7D30F3EA183AB34200FFC021 /* VLCGoogleDriveController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D30F3E5183AB34200FFC021 /* VLCGoogleDriveController.m */; };
-		7D30F3EB183AB34200FFC021 /* VLCGoogleDriveTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D30F3E7183AB34200FFC021 /* VLCGoogleDriveTableViewCell.m */; };
 		7D30F3EC183AB34200FFC021 /* VLCGoogleDriveTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D30F3E9183AB34200FFC021 /* VLCGoogleDriveTableViewController.m */; };
 		7D31001D17B64AE100E6516D /* GHRevealViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D31001C17B64AE100E6516D /* GHRevealViewController.m */; };
 		7D31002017B6768B00E6516D /* libupnpx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7D31001F17B6768B00E6516D /* libupnpx.a */; };
@@ -510,8 +509,6 @@
 		7D30F3E3183AB34200FFC021 /* VLCGoogleDriveConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = VLCGoogleDriveConstants.h; path = Sources/VLCGoogleDriveConstants.h; sourceTree = SOURCE_ROOT; };
 		7D30F3E4183AB34200FFC021 /* VLCGoogleDriveController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = VLCGoogleDriveController.h; path = Sources/VLCGoogleDriveController.h; sourceTree = SOURCE_ROOT; };
 		7D30F3E5183AB34200FFC021 /* VLCGoogleDriveController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = VLCGoogleDriveController.m; path = Sources/VLCGoogleDriveController.m; sourceTree = SOURCE_ROOT; };
-		7D30F3E6183AB34200FFC021 /* VLCGoogleDriveTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = VLCGoogleDriveTableViewCell.h; path = Sources/VLCGoogleDriveTableViewCell.h; sourceTree = SOURCE_ROOT; };
-		7D30F3E7183AB34200FFC021 /* VLCGoogleDriveTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = VLCGoogleDriveTableViewCell.m; path = Sources/VLCGoogleDriveTableViewCell.m; sourceTree = SOURCE_ROOT; };
 		7D30F3E8183AB34200FFC021 /* VLCGoogleDriveTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = VLCGoogleDriveTableViewController.h; path = Sources/VLCGoogleDriveTableViewController.h; sourceTree = SOURCE_ROOT; };
 		7D30F3E9183AB34200FFC021 /* VLCGoogleDriveTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = VLCGoogleDriveTableViewController.m; path = Sources/VLCGoogleDriveTableViewController.m; sourceTree = SOURCE_ROOT; };
 		7D31001B17B64AE100E6516D /* GHRevealViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GHRevealViewController.h; path = ImportedSources/GHSidebarNav/GHSidebarNav/GHRevealViewController.h; sourceTree = SOURCE_ROOT; };
@@ -1638,8 +1635,6 @@
 				7D30F3E3183AB34200FFC021 /* VLCGoogleDriveConstants.h */,
 				7D30F3E4183AB34200FFC021 /* VLCGoogleDriveController.h */,
 				7D30F3E5183AB34200FFC021 /* VLCGoogleDriveController.m */,
-				7D30F3E6183AB34200FFC021 /* VLCGoogleDriveTableViewCell.h */,
-				7D30F3E7183AB34200FFC021 /* VLCGoogleDriveTableViewCell.m */,
 				7D30F3E8183AB34200FFC021 /* VLCGoogleDriveTableViewController.h */,
 				7D30F3E9183AB34200FFC021 /* VLCGoogleDriveTableViewController.m */,
 			);
@@ -2163,7 +2158,6 @@
 				7D30F3DF183AB31E00FFC021 /* VLCWiFiUploadTableViewCell.m in Sources */,
 				7D30F3E2183AB33200FFC021 /* VLCSidebarViewCell.m in Sources */,
 				7D30F3EA183AB34200FFC021 /* VLCGoogleDriveController.m in Sources */,
-				7D30F3EB183AB34200FFC021 /* VLCGoogleDriveTableViewCell.m in Sources */,
 				7D30F3EC183AB34200FFC021 /* VLCGoogleDriveTableViewController.m in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;