1/* 2 * Copyright (c) 2003-2008 Apple Inc. All rights reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 6 * This file contains Original Code and/or Modifications of Original Code 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 9 * compliance with the License. Please obtain a copy of the License at 10 * http://www.opensource.apple.com/apsl/ and read it before using this 11 * file. 12 * 13 * The Original Code and all software distributed under the License are 14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 * Please see the License for the specific language governing rights and 19 * limitations under the License. 20 * 21 * @APPLE_LICENSE_HEADER_END@ 22 */ 23 24 25#ifndef __CDDA_TRACK_NAME_H__ 26#define __CDDA_TRACK_NAME_H__ 27 28 29//----------------------------------------------------------------------------- 30// Includes 31//----------------------------------------------------------------------------- 32 33#include "TBundle.h" 34 35 36//----------------------------------------------------------------------------- 37// Class Declaration 38// 39// CDDATrackName is the base class for all databases used. It provides 40// localized variants of the artist, title, and track names, as well as a 41// possible separator string used for diskarbitrationd 42//----------------------------------------------------------------------------- 43 44class CDDATrackName 45{ 46 47 private: 48 49 // Disable copy constructors 50 CDDATrackName ( CDDATrackName &src ); 51 void operator = ( CDDATrackName &src ); 52 53 TBundle * fBundle; 54 55 CFStringRef fTrackNameStringRef; 56 CFStringRef fAlbumStringRef; 57 CFStringRef fArtistStringRef; 58 CFStringRef fSeparatorStringRef; 59 60 public: 61 62 // Constructor 63 CDDATrackName ( void ); 64 65 // Destructor 66 virtual ~CDDATrackName ( void ); 67 68 virtual SInt32 Init ( const char * bsdDevNode, const void * TOCData ); 69 70 virtual CFStringRef GetArtistName ( void ); 71 virtual CFStringRef GetAlbumName ( void ); 72 virtual CFStringRef GetSeparatorString ( void ); 73 virtual CFStringRef GetTrackName ( UInt8 trackNumber ); 74 75}; 76 77 78#endif /* __CDDA_TRACK_NAME_H__ */ 79