1.1 --- a/Common/Source/LoginItemsAE.h Sun Aug 02 00:52:57 2009 -0700
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,101 +0,0 @@
1.4 -/*
1.5 - File: LoginItemsAE.h
1.6 -
1.7 - Contains: Login items manipulation via Apple events.
1.8 -
1.9 - Copyright: Copyright (c) 2005 by Apple Computer, Inc., All Rights Reserved.
1.10 -
1.11 - Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc.
1.12 - ("Apple") in consideration of your agreement to the following terms, and your
1.13 - use, installation, modification or redistribution of this Apple software
1.14 - constitutes acceptance of these terms. If you do not agree with these terms,
1.15 - please do not use, install, modify or redistribute this Apple software.
1.16 -
1.17 - In consideration of your agreement to abide by the following terms, and subject
1.18 - to these terms, Apple grants you a personal, non-exclusive license, under AppleÕs
1.19 - copyrights in this original Apple software (the "Apple Software"), to use,
1.20 - reproduce, modify and redistribute the Apple Software, with or without
1.21 - modifications, in source and/or binary forms; provided that if you redistribute
1.22 - the Apple Software in its entirety and without modifications, you must retain
1.23 - this notice and the following text and disclaimers in all such redistributions of
1.24 - the Apple Software. Neither the name, trademarks, service marks or logos of
1.25 - Apple Computer, Inc. may be used to endorse or promote products derived from the
1.26 - Apple Software without specific prior written permission from Apple. Except as
1.27 - expressly stated in this notice, no other rights or licenses, express or implied,
1.28 - are granted by Apple herein, including but not limited to any patent rights that
1.29 - may be infringed by your derivative works or by other works in which the Apple
1.30 - Software may be incorporated.
1.31 -
1.32 - The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
1.33 - WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
1.34 - WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1.35 - PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
1.36 - COMBINATION WITH YOUR PRODUCTS.
1.37 -
1.38 - IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
1.39 - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
1.40 - GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.41 - ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
1.42 - OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
1.43 - (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
1.44 - ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1.45 -
1.46 - Change History (most recent first):
1.47 -
1.48 -$Log: LoginItemsAE.h,v $
1.49 -Revision 1.1 2005/09/27 12:29:29
1.50 -First checked in.
1.51 -
1.52 -
1.53 -*/
1.54 -
1.55 -#ifndef _LOGINITEMSAE_H
1.56 -#define _LOGINITEMSAE_H
1.57 -
1.58 -/////////////////////////////////////////////////////////////////
1.59 -
1.60 -// System prototypes
1.61 -
1.62 -#include <ApplicationServices/ApplicationServices.h>
1.63 -
1.64 -/////////////////////////////////////////////////////////////////
1.65 -
1.66 -#ifdef __cplusplus
1.67 -extern "C" {
1.68 -#endif
1.69 -
1.70 -/////////////////////////////////////////////////////////////////
1.71 -
1.72 -// Keys for the dictionary return by LIAECopyLoginItems.
1.73 -
1.74 -#define kLIAEURL CFSTR("URL") // CFURL
1.75 -#define kLIAEHidden CFSTR("Hidden") // CFBoolean
1.76 -
1.77 -extern OSStatus LIAECopyLoginItems(CFArrayRef *itemsPtr);
1.78 - // Returns an array of CFDictionaries, each one describing a
1.79 - // login item. Each dictionary has two elements,
1.80 - // kLIAEURL and kLIAEHidden, which are
1.81 - // documented above.
1.82 - //
1.83 - // On input, itemsPtr must not be NULL.
1.84 - // On input, *itemsPtr must be NULL.
1.85 - // On success, *itemsPtr will be a pointer to a CFArray.
1.86 - // Or error, *itemsPtr will be NULL.
1.87 -
1.88 -extern OSStatus LIAEAddRefAtEnd(const FSRef *item, Boolean hideIt);
1.89 -extern OSStatus LIAEAddURLAtEnd(CFURLRef item, Boolean hideIt);
1.90 - // Add a new login item at the end of the list, using either
1.91 - // an FSRef or a CFURL. The hideIt parameter controls whether
1.92 - // the item is hidden when it's launched.
1.93 -
1.94 -extern OSStatus LIAERemove(CFIndex itemIndex);
1.95 - // Remove a login item. itemIndex is an index into the array
1.96 - // of login items as returned by LIAECopyLoginItems.
1.97 -
1.98 -/////////////////////////////////////////////////////////////////
1.99 -
1.100 -#ifdef __cplusplus
1.101 -}
1.102 -#endif
1.103 -
1.104 -#endif