Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
5a1d091d
Commit
5a1d091d
authored
Nov 19, 2013
by
Felix Paul Kühne
Browse files
Remove GoogleDriveTableViewCell as it was superseeded by VLCCloudStorageTableViewCell
parent
5b6d42c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Sources/VLCGoogleDriveTableViewCell.h
deleted
100644 → 0
View file @
5b6d42c8
/*****************************************************************************
* 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
Sources/VLCGoogleDriveTableViewCell.m
deleted
100644 → 0
View file @
5b6d42c8
/*****************************************************************************
* 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
VLC for iOS.xcodeproj/project.pbxproj
View file @
5a1d091d
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment