]> git.sesse.net Git - vlc/commitdiff
VLCKit.framework: Documentation updates, whitespace cleanup.
authorFaustino Osuna <enrique.osuna@gmail.com>
Mon, 31 Mar 2008 22:02:12 +0000 (23:02 +0100)
committerFaustino Osuna <enrique.osuna@gmail.com>
Mon, 31 Mar 2008 22:02:12 +0000 (23:02 +0100)
15 files changed:
projects/macosx/framework/Headers/Internal/VLCEventManager.h
projects/macosx/framework/Headers/Internal/VLCLibVLCBridging.h
projects/macosx/framework/Headers/Internal/VLCVideoCommon.h
projects/macosx/framework/Headers/Public/VLCAudio.h
projects/macosx/framework/Headers/Public/VLCKit.h
projects/macosx/framework/Headers/Public/VLCLibrary.h
projects/macosx/framework/Headers/Public/VLCMedia.h
projects/macosx/framework/Headers/Public/VLCMediaDiscoverer.h
projects/macosx/framework/Headers/Public/VLCMediaLibrary.h
projects/macosx/framework/Headers/Public/VLCMediaList.h
projects/macosx/framework/Headers/Public/VLCMediaListAspect.h
projects/macosx/framework/Headers/Public/VLCMediaPlayer.h
projects/macosx/framework/Headers/Public/VLCTime.h
projects/macosx/framework/Headers/Public/VLCVideoLayer.h
projects/macosx/framework/Headers/Public/VLCVideoView.h

index a5dd3cfc5d839baa325fd0b0275d24bbaf45a11c..2263fce4bd2acc28694103f0e3ff8445ddf3c0b3 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCEventManager.h: VLC.framework VLCEventManager header
+ * VLCEventManager.h: VLCKit.framework VLCEventManager header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
index cc94d5111a3e0126a95bcb7d9997734d7519007f..8b3cd755c1ec35e5b79ceabfbfba27ee86c096ea 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
-* VLCLibVLCbridging.h: VLC.framework VLCLibVLCBridging (Private) header
+* VLCLibVLCbridging.h: VLCKit.framework VLCLibVLCBridging (Private) header
 *****************************************************************************
 * Copyright (C) 2007 Pierre d'Herbemont
 * Copyright (C) 2007 the VideoLAN team
 #import "VLCMediaListAspect.h"
 #import "VLCStreamOutput.h"
 
+/* Utility functions */
 /**
- * Bridges functionality between libvlc and VLCMediaList implementation.
- */
-
-/*
- * Utility function
+ * \function catch_execption( ex )
+ * Utility function that catches a LibVLC generated exception by throwing a Cocoa based NSException.  
+ * \param ex LibVLC exception returned by LibVLC internal functions.
  */
-
 #define catch_exception( ex ) __catch_exception( (void *)(ex), __FUNCTION__, __FILE__, __LINE__ )
 extern void __catch_exception( void * e, const char * function, const char * file, int line_number );
 
-/*
- * @interface VLC(class) (LibVLCBridging)
+/**
+ * Bridges functionality between libvlc and VLCMediaList implementation.
  */
-
 @interface VLCMediaList (LibVLCBridging)
 /* Factories */
 /**
@@ -103,8 +100,6 @@ extern void __catch_exception( void * e, const char * function, const char * fil
  * \param value
  */
 - (void)setLength:(VLCTime *)value;
-
-
 @end
 
 /**
@@ -177,6 +172,9 @@ extern void __catch_exception( void * e, const char * function, const char * fil
 - (id)initWithLibrary:(VLCLibrary *)library;
 @end
 
+/**
+ * TODO: Documentation
+ */
 @interface VLCStreamOutput (LibVLCBridge)
 - (NSString *)representedLibVLCOptions;
 @end
index 30b5fcb3abcffb76273a0d5358c5f839d2541002..223fe6db7ef4f6e263cc963eb466b06dbb49323b 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCVideoCommon.h: VLC.framework VLCVideoCommon header
+ * VLCVideoCommon.h: VLCKit.framework VLCVideoCommon header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
 
 #import <QuartzCore/QuartzCore.h>
 
+/**
+ * TODO: Documentation
+ */
 @interface VLCVideoLayoutManager : NSObject
 {
     CGSize originalVideoSize;
     BOOL  fillScreenEntirely;
 }
-@property BOOL  fillScreenEntirely;
-@property CGSize originalVideoSize;
 
+/* Factories */
 + (id)layoutManager;
 
+/* Properties */
+@property BOOL  fillScreenEntirely;
+@property CGSize originalVideoSize;
 @end
index cb2b80fd154ac76f520a0f3859c12de12be63320..b31dd453490222e0b9b5e7698c437dca965427c9 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCAudio.h: VLC.framework VLCAudio header
+ * VLCAudio.h: VLCKit.framework VLCAudio header
  *****************************************************************************
  * Copyright (C) 2007 Faustino E. Osuna
  * Copyright (C) 2007 the VideoLAN team
index 8a0769eaca2cea1549688a83bffeffc5a7f353a8..868aeec7b8add10d370db61e8203f886dcb98c26 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLC.h: VLC.framework main header
+ * VLCKit.h: VLCKit.framework main header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
@@ -22,8 +22,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#ifndef VLC_FRAMEWORK_VLC_H
-#define VLC_FRAMEWORK_VLC_H
+/**
+ * TODO: Framework Documetnation
+ */
 
 #import <VLCKit/VLCLibrary.h>
 #import <VLCKit/VLCMedia.h>
@@ -42,6 +43,4 @@
 @class VLCMediaLibrary;
 @class VLCMediaList;
 @class VLCTime;
-@class VLCVideoView;
-
-#endif /* VLC_FRAMEWORK_VLC_H */
+@class VLCVideoView;
\ No newline at end of file
index a3d6c3590994fdc3ce5ca03ae3b20243584517b9..89009c2d88bd6301410276cb375a047b263a23e2 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCLibrary.h: VLC.framework VLCLibrary implementation
+ * VLCLibrary.h: VLCKit.framework VLCLibrary implementation
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
 #import "VLCMediaList.h"
 #import "VLCMedia.h"
 
-
+// FIXME: Hide from public header
 extern void * CreateSharedLibraryOnStartup( void ) __attribute__((constructor));
 extern void * DestroySharedLibraryAtExit( void ) __attribute__((destructor));
 
 @class VLCAudio;
 
 /**
- * VLCLibrary object.
- * TODO: Documentation VLCLibrary
+ * The VLCLibrary is the base library of the VLCKit.framework.  This object provides a shared instance that exposes the
+ * internal functionalities of libvlc and libvlc-control. The VLCLibrary object is instantiated automatically when
+ * VLCKit.framework is loaded into memory.  Also, it is automatically destroyed when the VLCKit.framework is unloaded
+ * from memory.
+ *
+ * Currently, the framework does not support multiple instances of VLCLibrary.  Furthermore, you cannot destroy any
+ * instiantiation of VLCLibrary, as previously noted, this is done automatically by the dynamic link loader.
  */
 @interface VLCLibrary : NSObject 
 {
@@ -45,13 +50,16 @@ extern void * DestroySharedLibraryAtExit( void ) __attribute__((destructor));
 
 /* Factories */
 /**
- * TODO: Documentation + [VLCLibrary sharedLibrary]
+ * Returns the library's shared instance.
+ * \return The library's shared instance.
  */
 + (VLCLibrary *)sharedLibrary;
 
 /* Properties */
 /**
- * TODO: Documentation VLCLibrary.audio
+ * Returns the library's audio object.  This object is used to manipulate the global audio properities of the shared
+ * library.
+ * \return The library's shared audio instance.
  */
 @property (readonly) VLCAudio * audio;
 @end
index 75b3fde4d21eb5d5595e32902b47c5d6bee00a90..6293ffc5561b7ff4868333f8ee8fcea6d0c58a3c 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCMedia.h: VLC.framework VLCMedia header
+ * VLCMedia.h: VLCKit.framework VLCMedia header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
@@ -100,29 +100,28 @@ typedef enum VLCMediaState
 
 /**
  * Defines files and streams as a managed object.  Each media object can be 
- * administered seperately.  VLCMediaPlayer or VLCMediaControl must be used 
+ * administered seperately.  VLCMediaPlayer or VLCMediaList must be used 
  * to execute the appropriate playback functions.
  * \see VLCMediaPlayer
- * \see VLCMediaControl
+ * \see VLCMediaList
  */
 @interface VLCMedia : NSObject
 {
     void *                p_md;              //< Internal media descriptor instance
-    NSURL *               url;               //< URL for this media resource
+    NSURL *               url;               //< URL (MRL) for this media resource
     VLCMediaList *        subitems;          //< Sub list of items
-    VLCTime *             length;            //< Duration of the media
+    VLCTime *             length;            //< Cached duration of the media
     NSMutableDictionary * metaDictionary;    //< Meta data storage
     id                    delegate;          //< Delegate object
     BOOL                  artFetched;        //< Value used to determine of the artwork has been preparsed
-    VLCMediaState         state;
+    VLCMediaState         state;             //< Current state of the media
 }
 
-/* Object Factories */
+/* Factories */
 /**
  * Manufactures a new VLCMedia object using the URL specified.
  * \param anURL URL to media to be accessed.
- * \return A new VLCMedia object, only if there were no errors.  This object 
- * will be automatically released.
+ * \return A new VLCMedia object, only if there were no errors.  This object will be automatically released.
  * \see initWithMediaURL
  */
 + (id)mediaWithURL:(NSURL *)anURL;
@@ -130,8 +129,7 @@ typedef enum VLCMediaState
 /**
  * Manufactures a new VLCMedia object using the path specified.
  * \param aPath Path to the media to be accessed.
- * \return A new VLCMedia object, only if there were no errors.  This object 
- * will be automatically released.
+ * \return A new VLCMedia object, only if there were no errors.  This object will be automatically released.
  * \see initWithPath
  */
 + (id)mediaWithPath:(NSString *)aPath;
index 2041ffa7468097288ae5997b3c1f068e826b1bd1..2122ef9e61194c603e90a0485cc7201ac649f0e7 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCMediaDiscoverer.h: VLC.framework VLCMediaDiscoverer header
+ * VLCMediaDiscoverer.h: VLCKit.framework VLCMediaDiscoverer header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
index 1381677a0320990db6a8569cdbd7d5710e7a2d57..285207c89cd22732e497d6abed702a801c084f7b 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCMediaDiscoverer.h: VLC.framework VLCMediaDiscoverer header
+ * VLCMediaDiscoverer.h: VLCKit.framework VLCMediaDiscoverer header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
@@ -35,7 +35,7 @@
     void * mlib;
     VLCMediaList * allMedia;
 }
-/* Singleton */
+/* Factories */
 + (id)sharedMediaLibrary;
 
 /* Properties */
index 6d8b4f5b83609609603121cd7ad0877e37bf6315..221580005d66527a752bb127d0b0ce908a51d3df 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCMediaList.h: VLC.framework VLCMediaList header
+ * VLCMediaList.h: VLCKit.framework VLCMediaList header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
index 61aa978642c86ea6a9cc3c5a3d31b41d821a3659..dcaf276c546daabcd2334d0a34b96f32174eaa8c 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCMediaLisAspect.h: VLC.framework VLCMediaLisAspect header
+ * VLCMediaLisAspect.h: VLCKit.framework VLCMediaLisAspect header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
index eac63e6a471f1e47174bc85861df28da2ca70b19..b282b90ce5ed4997c42abb0228b131aa55e469a1 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCMediaPlayer.h: VLC.framework VLCMediaPlayer header
+ * VLCMediaPlayer.h: VLCKit.framework VLCMediaPlayer header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
@@ -34,7 +34,7 @@ extern NSString * VLCMediaPlayerTimeChanged;
 extern NSString * VLCMediaPlayerStateChanged;
 
 /**
- * TODO: Documentation VLCMediaPlayerState
+ * VLCMediaPlayerState describes the state of the media player.
  */
 typedef enum VLCMediaPlayerState
 {
@@ -48,7 +48,9 @@ typedef enum VLCMediaPlayerState
 } VLCMediaPlayerState;
 
 /**
- * TODO: Documentation extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState)
+ * Returns the name of the player state as a string.
+ * \param state The player state.
+ * \return A string containing the name of state. If state is not a valid state, returns nil.
  */
 extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
 
@@ -58,12 +60,16 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  */
 @protocol VLCMediaPlayerDelegate
 /**
- * TODO: Documentation - [VLCMediaPlayerDelegate ]
+ * Sent by the default notification center whenever the player's time has changed.
+ * \details Discussion The value of aNotification is always an VLCMediaPlayerTimeChanged notification. You can retrieve 
+ * the VLCMediaPlayer object in question by sending object to aNotification.
  */
 - (void)mediaPlayerTimeChanged:(NSNotification *)aNotification;
 
 /**
- * TODO: Documentation - [VLCMediaPlayerDelegate ]
+ * Sent by the default notification center whenever the player's state has changed.
+ * \details Discussion The value of aNotification is always an VLCMediaPlayerStateChanged notification. You can retrieve 
+ * the VLCMediaPlayer object in question by sending object to aNotification.
  */
 - (void)mediaPlayerStateChanged:(NSNotification *)aNotification;
 @end
@@ -72,12 +78,11 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
 @interface VLCMediaPlayer : NSObject 
 {
     id delegate;                        //< Object delegate
-
     void * instance;                    //  Internal
     VLCMedia * media;                   //< Current media being played
-    VLCTime * cachedTime;
-    VLCMediaPlayerState cachedState;
-    float position;
+    VLCTime * cachedTime;               //< Cached time of the media being played
+    VLCMediaPlayerState cachedState;    //< Cached state of the media being played
+    float position;                     //< The position of the media being played
 }
 
 /* Initializers */
index c2b9619525e0a62f718a3cac716aeae9c50bda80..61a53a00ec620128e0f40c6a0db9fc53e00a7f7e 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCTime.h: VLC.framework VLCTime header
+ * VLCTime.h: VLCKit.framework VLCTime header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
index 005fb0ac2d05e5802c1c30cdcb577577d582d94b..e0502f6d12765eba67010859cafc6ec2c8e153d0 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCVideoLayer.h: VLC.framework VLCVideoLayer header
+ * VLCVideoLayer.h: VLCKit.framework VLCVideoLayer header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
@@ -28,6 +28,8 @@
 {
     BOOL hasVideo;
 }
+
+/* Properties */
 @property (readonly) BOOL hasVideo;
 @property BOOL fillScreen;
 @end
index 38796f5858abe11bdd613a56416cc57d28916836..2f76be13874004c90bcd3d375e9dd4c9f779375d 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * VLCVideoView.h: VLC.framework VLCVideoView header
+ * VLCVideoView.h: VLCKit.framework VLCVideoView header
  *****************************************************************************
  * Copyright (C) 2007 Pierre d'Herbemont
  * Copyright (C) 2007 the VideoLAN team
@@ -34,6 +34,7 @@
     BOOL hasVideo;
 }
 
+/* Properties */
 @property (assign) id delegate;
 @property (copy) NSColor *backColor;
 @property BOOL fillScreen;