diff --git a/ejabberdPrefs/English.lproj/InfoPlist.strings b/ejabberdPrefs/English.lproj/InfoPlist.strings deleted file mode 100644 index cc357ab..0000000 Binary files a/ejabberdPrefs/English.lproj/InfoPlist.strings and /dev/null differ diff --git a/ejabberdPrefs/English.lproj/ejabberdPref.nib/classes.nib b/ejabberdPrefs/English.lproj/ejabberdPref.nib/classes.nib deleted file mode 100644 index 6e0dced..0000000 --- a/ejabberdPrefs/English.lproj/ejabberdPref.nib/classes.nib +++ /dev/null @@ -1,30 +0,0 @@ -{ - IBClasses = ( - { - CLASS = NSPreferencePane; - LANGUAGE = ObjC; - OUTLETS = { - "_firstKeyView" = id; - "_initialKeyView" = id; - "_lastKeyView" = id; - "_window" = id; - }; - SUPERCLASS = NSObject; - }, - { - ACTIONS = {automaticStartAction = id; startStopAction = id; }; - CLASS = ejabberdController; - LANGUAGE = ObjC; - OUTLETS = { - actionProgress = NSProgressIndicator; - automaticBox = NSButton; - imagestarted = NSImageView; - imagestopped = NSImageView; - startStopButton = NSButton; - status = NSTextField; - }; - SUPERCLASS = NSObject; - } - ); - IBVersion = 1; -} \ No newline at end of file diff --git a/ejabberdPrefs/English.lproj/ejabberdPref.nib/info.nib b/ejabberdPrefs/English.lproj/ejabberdPref.nib/info.nib deleted file mode 100644 index 7914eb6..0000000 --- a/ejabberdPrefs/English.lproj/ejabberdPref.nib/info.nib +++ /dev/null @@ -1,14 +0,0 @@ - - - - - IBDocumentLocation - 32 22 356 240 0 0 1680 1028 - IBFramework Version - 446.1 - IBOldestOS - 2 - IBSystem Version - 8S2167 - - diff --git a/ejabberdPrefs/English.lproj/ejabberdPref.nib/keyedobjects.nib b/ejabberdPrefs/English.lproj/ejabberdPref.nib/keyedobjects.nib deleted file mode 100644 index e39337f..0000000 Binary files a/ejabberdPrefs/English.lproj/ejabberdPref.nib/keyedobjects.nib and /dev/null differ diff --git a/ejabberdPrefs/Info.plist b/ejabberdPrefs/Info.plist deleted file mode 100644 index 065688c..0000000 --- a/ejabberdPrefs/Info.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - ejabberd - CFBundleIconFile - - CFBundleIdentifier - com.apple.prefpanel - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleSignature - process-one - CFBundleVersion - 2.0.3 - NSMainNibFile - ejabberdPref - NSPrefPaneIconFile - ejabberdPref.tiff - NSPrefPaneIconLabel - ejabberd - NSPrincipalClass - ejabberdPref - - diff --git a/ejabberdPrefs/LICENSE b/ejabberdPrefs/LICENSE deleted file mode 100644 index 17fb0c7..0000000 --- a/ejabberdPrefs/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -ejabberd's prefPane Licence - -Except as described below, all of the source code to prefPane is -available under the Mozilla Public Licence (MPL). - -The complete text of the Mozilla Public License can be found in -the MPL file in the same directory as this file or consulted at -http://www.mozilla.org/MPL/MPL-1.1.html. - -Exceptions - -The following portions are not available under the above -terms: - - * Image files containing the trademarks and logos of - ProcessOne, which may not be reproduced without - permission. (Copyright ©2001-2009 ProcessOne. All Rights - Reserved.) diff --git a/ejabberdPrefs/MPL b/ejabberdPrefs/MPL deleted file mode 100644 index 7714141..0000000 --- a/ejabberdPrefs/MPL +++ /dev/null @@ -1,470 +0,0 @@ - MOZILLA PUBLIC LICENSE - Version 1.1 - - --------------- - -1. Definitions. - - 1.0.1. "Commercial Use" means distribution or otherwise making the - Covered Code available to a third party. - - 1.1. "Contributor" means each entity that creates or contributes to - the creation of Modifications. - - 1.2. "Contributor Version" means the combination of the Original - Code, prior Modifications used by a Contributor, and the Modifications - made by that particular Contributor. - - 1.3. "Covered Code" means the Original Code or Modifications or the - combination of the Original Code and Modifications, in each case - including portions thereof. - - 1.4. "Electronic Distribution Mechanism" means a mechanism generally - accepted in the software development community for the electronic - transfer of data. - - 1.5. "Executable" means Covered Code in any form other than Source - Code. - - 1.6. "Initial Developer" means the individual or entity identified - as the Initial Developer in the Source Code notice required by Exhibit - A. - - 1.7. "Larger Work" means a work which combines Covered Code or - portions thereof with code not governed by the terms of this License. - - 1.8. "License" means this document. - - 1.8.1. "Licensable" means having the right to grant, to the maximum - extent possible, whether at the time of the initial grant or - subsequently acquired, any and all of the rights conveyed herein. - - 1.9. "Modifications" means any addition to or deletion from the - substance or structure of either the Original Code or any previous - Modifications. When Covered Code is released as a series of files, a - Modification is: - A. Any addition to or deletion from the contents of a file - containing Original Code or previous Modifications. - - B. Any new file that contains any part of the Original Code or - previous Modifications. - - 1.10. "Original Code" means Source Code of computer software code - which is described in the Source Code notice required by Exhibit A as - Original Code, and which, at the time of its release under this - License is not already Covered Code governed by this License. - - 1.10.1. "Patent Claims" means any patent claim(s), now owned or - hereafter acquired, including without limitation, method, process, - and apparatus claims, in any patent Licensable by grantor. - - 1.11. "Source Code" means the preferred form of the Covered Code for - making modifications to it, including all modules it contains, plus - any associated interface definition files, scripts used to control - compilation and installation of an Executable, or source code - differential comparisons against either the Original Code or another - well known, available Covered Code of the Contributor's choice. The - Source Code can be in a compressed or archival form, provided the - appropriate decompression or de-archiving software is widely available - for no charge. - - 1.12. "You" (or "Your") means an individual or a legal entity - exercising rights under, and complying with all of the terms of, this - License or a future version of this License issued under Section 6.1. - For legal entities, "You" includes any entity which controls, is - controlled by, or is under common control with You. For purposes of - this definition, "control" means (a) the power, direct or indirect, - to cause the direction or management of such entity, whether by - contract or otherwise, or (b) ownership of more than fifty percent - (50%) of the outstanding shares or beneficial ownership of such - entity. - -2. Source Code License. - - 2.1. The Initial Developer Grant. - The Initial Developer hereby grants You a world-wide, royalty-free, - non-exclusive license, subject to third party intellectual property - claims: - (a) under intellectual property rights (other than patent or - trademark) Licensable by Initial Developer to use, reproduce, - modify, display, perform, sublicense and distribute the Original - Code (or portions thereof) with or without Modifications, and/or - as part of a Larger Work; and - - (b) under Patents Claims infringed by the making, using or - selling of Original Code, to make, have made, use, practice, - sell, and offer for sale, and/or otherwise dispose of the - Original Code (or portions thereof). - - (c) the licenses granted in this Section 2.1(a) and (b) are - effective on the date Initial Developer first distributes - Original Code under the terms of this License. - - (d) Notwithstanding Section 2.1(b) above, no patent license is - granted: 1) for code that You delete from the Original Code; 2) - separate from the Original Code; or 3) for infringements caused - by: i) the modification of the Original Code or ii) the - combination of the Original Code with other software or devices. - - 2.2. Contributor Grant. - Subject to third party intellectual property claims, each Contributor - hereby grants You a world-wide, royalty-free, non-exclusive license - - (a) under intellectual property rights (other than patent or - trademark) Licensable by Contributor, to use, reproduce, modify, - display, perform, sublicense and distribute the Modifications - created by such Contributor (or portions thereof) either on an - unmodified basis, with other Modifications, as Covered Code - and/or as part of a Larger Work; and - - (b) under Patent Claims infringed by the making, using, or - selling of Modifications made by that Contributor either alone - and/or in combination with its Contributor Version (or portions - of such combination), to make, use, sell, offer for sale, have - made, and/or otherwise dispose of: 1) Modifications made by that - Contributor (or portions thereof); and 2) the combination of - Modifications made by that Contributor with its Contributor - Version (or portions of such combination). - - (c) the licenses granted in Sections 2.2(a) and 2.2(b) are - effective on the date Contributor first makes Commercial Use of - the Covered Code. - - (d) Notwithstanding Section 2.2(b) above, no patent license is - granted: 1) for any code that Contributor has deleted from the - Contributor Version; 2) separate from the Contributor Version; - 3) for infringements caused by: i) third party modifications of - Contributor Version or ii) the combination of Modifications made - by that Contributor with other software (except as part of the - Contributor Version) or other devices; or 4) under Patent Claims - infringed by Covered Code in the absence of Modifications made by - that Contributor. - -3. Distribution Obligations. - - 3.1. Application of License. - The Modifications which You create or to which You contribute are - governed by the terms of this License, including without limitation - Section 2.2. The Source Code version of Covered Code may be - distributed only under the terms of this License or a future version - of this License released under Section 6.1, and You must include a - copy of this License with every copy of the Source Code You - distribute. You may not offer or impose any terms on any Source Code - version that alters or restricts the applicable version of this - License or the recipients' rights hereunder. However, You may include - an additional document offering the additional rights described in - Section 3.5. - - 3.2. Availability of Source Code. - Any Modification which You create or to which You contribute must be - made available in Source Code form under the terms of this License - either on the same media as an Executable version or via an accepted - Electronic Distribution Mechanism to anyone to whom you made an - Executable version available; and if made available via Electronic - Distribution Mechanism, must remain available for at least twelve (12) - months after the date it initially became available, or at least six - (6) months after a subsequent version of that particular Modification - has been made available to such recipients. You are responsible for - ensuring that the Source Code version remains available even if the - Electronic Distribution Mechanism is maintained by a third party. - - 3.3. Description of Modifications. - You must cause all Covered Code to which You contribute to contain a - file documenting the changes You made to create that Covered Code and - the date of any change. You must include a prominent statement that - the Modification is derived, directly or indirectly, from Original - Code provided by the Initial Developer and including the name of the - Initial Developer in (a) the Source Code, and (b) in any notice in an - Executable version or related documentation in which You describe the - origin or ownership of the Covered Code. - - 3.4. Intellectual Property Matters - (a) Third Party Claims. - If Contributor has knowledge that a license under a third party's - intellectual property rights is required to exercise the rights - granted by such Contributor under Sections 2.1 or 2.2, - Contributor must include a text file with the Source Code - distribution titled "LEGAL" which describes the claim and the - party making the claim in sufficient detail that a recipient will - know whom to contact. If Contributor obtains such knowledge after - the Modification is made available as described in Section 3.2, - Contributor shall promptly modify the LEGAL file in all copies - Contributor makes available thereafter and shall take other steps - (such as notifying appropriate mailing lists or newsgroups) - reasonably calculated to inform those who received the Covered - Code that new knowledge has been obtained. - - (b) Contributor APIs. - If Contributor's Modifications include an application programming - interface and Contributor has knowledge of patent licenses which - are reasonably necessary to implement that API, Contributor must - also include this information in the LEGAL file. - - (c) Representations. - Contributor represents that, except as disclosed pursuant to - Section 3.4(a) above, Contributor believes that Contributor's - Modifications are Contributor's original creation(s) and/or - Contributor has sufficient rights to grant the rights conveyed by - this License. - - 3.5. Required Notices. - You must duplicate the notice in Exhibit A in each file of the Source - Code. If it is not possible to put such notice in a particular Source - Code file due to its structure, then You must include such notice in a - location (such as a relevant directory) where a user would be likely - to look for such a notice. If You created one or more Modification(s) - You may add your name as a Contributor to the notice described in - Exhibit A. You must also duplicate this License in any documentation - for the Source Code where You describe recipients' rights or ownership - rights relating to Covered Code. You may choose to offer, and to - charge a fee for, warranty, support, indemnity or liability - obligations to one or more recipients of Covered Code. However, You - may do so only on Your own behalf, and not on behalf of the Initial - Developer or any Contributor. You must make it absolutely clear than - any such warranty, support, indemnity or liability obligation is - offered by You alone, and You hereby agree to indemnify the Initial - Developer and every Contributor for any liability incurred by the - Initial Developer or such Contributor as a result of warranty, - support, indemnity or liability terms You offer. - - 3.6. Distribution of Executable Versions. - You may distribute Covered Code in Executable form only if the - requirements of Section 3.1-3.5 have been met for that Covered Code, - and if You include a notice stating that the Source Code version of - the Covered Code is available under the terms of this License, - including a description of how and where You have fulfilled the - obligations of Section 3.2. The notice must be conspicuously included - in any notice in an Executable version, related documentation or - collateral in which You describe recipients' rights relating to the - Covered Code. You may distribute the Executable version of Covered - Code or ownership rights under a license of Your choice, which may - contain terms different from this License, provided that You are in - compliance with the terms of this License and that the license for the - Executable version does not attempt to limit or alter the recipient's - rights in the Source Code version from the rights set forth in this - License. If You distribute the Executable version under a different - license You must make it absolutely clear that any terms which differ - from this License are offered by You alone, not by the Initial - Developer or any Contributor. You hereby agree to indemnify the - Initial Developer and every Contributor for any liability incurred by - the Initial Developer or such Contributor as a result of any such - terms You offer. - - 3.7. Larger Works. - You may create a Larger Work by combining Covered Code with other code - not governed by the terms of this License and distribute the Larger - Work as a single product. In such a case, You must make sure the - requirements of this License are fulfilled for the Covered Code. - -4. Inability to Comply Due to Statute or Regulation. - - If it is impossible for You to comply with any of the terms of this - License with respect to some or all of the Covered Code due to - statute, judicial order, or regulation then You must: (a) comply with - the terms of this License to the maximum extent possible; and (b) - describe the limitations and the code they affect. Such description - must be included in the LEGAL file described in Section 3.4 and must - be included with all distributions of the Source Code. Except to the - extent prohibited by statute or regulation, such description must be - sufficiently detailed for a recipient of ordinary skill to be able to - understand it. - -5. Application of this License. - - This License applies to code to which the Initial Developer has - attached the notice in Exhibit A and to related Covered Code. - -6. Versions of the License. - - 6.1. New Versions. - Netscape Communications Corporation ("Netscape") may publish revised - and/or new versions of the License from time to time. Each version - will be given a distinguishing version number. - - 6.2. Effect of New Versions. - Once Covered Code has been published under a particular version of the - License, You may always continue to use it under the terms of that - version. You may also choose to use such Covered Code under the terms - of any subsequent version of the License published by Netscape. No one - other than Netscape has the right to modify the terms applicable to - Covered Code created under this License. - - 6.3. Derivative Works. - If You create or use a modified version of this License (which you may - only do in order to apply it to code which is not already Covered Code - governed by this License), You must (a) rename Your license so that - the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape", - "MPL", "NPL" or any confusingly similar phrase do not appear in your - license (except to note that your license differs from this License) - and (b) otherwise make it clear that Your version of the license - contains terms which differ from the Mozilla Public License and - Netscape Public License. (Filling in the name of the Initial - Developer, Original Code or Contributor in the notice described in - Exhibit A shall not of themselves be deemed to be modifications of - this License.) - -7. DISCLAIMER OF WARRANTY. - - COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, - WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF - DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. - THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE - IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, - YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE - COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER - OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF - ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. - -8. TERMINATION. - - 8.1. This License and the rights granted hereunder will terminate - automatically if You fail to comply with terms herein and fail to cure - such breach within 30 days of becoming aware of the breach. All - sublicenses to the Covered Code which are properly granted shall - survive any termination of this License. Provisions which, by their - nature, must remain in effect beyond the termination of this License - shall survive. - - 8.2. If You initiate litigation by asserting a patent infringement - claim (excluding declatory judgment actions) against Initial Developer - or a Contributor (the Initial Developer or Contributor against whom - You file such action is referred to as "Participant") alleging that: - - (a) such Participant's Contributor Version directly or indirectly - infringes any patent, then any and all rights granted by such - Participant to You under Sections 2.1 and/or 2.2 of this License - shall, upon 60 days notice from Participant terminate prospectively, - unless if within 60 days after receipt of notice You either: (i) - agree in writing to pay Participant a mutually agreeable reasonable - royalty for Your past and future use of Modifications made by such - Participant, or (ii) withdraw Your litigation claim with respect to - the Contributor Version against such Participant. If within 60 days - of notice, a reasonable royalty and payment arrangement are not - mutually agreed upon in writing by the parties or the litigation claim - is not withdrawn, the rights granted by Participant to You under - Sections 2.1 and/or 2.2 automatically terminate at the expiration of - the 60 day notice period specified above. - - (b) any software, hardware, or device, other than such Participant's - Contributor Version, directly or indirectly infringes any patent, then - any rights granted to You by such Participant under Sections 2.1(b) - and 2.2(b) are revoked effective as of the date You first made, used, - sold, distributed, or had made, Modifications made by that - Participant. - - 8.3. If You assert a patent infringement claim against Participant - alleging that such Participant's Contributor Version directly or - indirectly infringes any patent where such claim is resolved (such as - by license or settlement) prior to the initiation of patent - infringement litigation, then the reasonable value of the licenses - granted by such Participant under Sections 2.1 or 2.2 shall be taken - into account in determining the amount or value of any payment or - license. - - 8.4. In the event of termination under Sections 8.1 or 8.2 above, - all end user license agreements (excluding distributors and resellers) - which have been validly granted by You or any distributor hereunder - prior to termination shall survive termination. - -9. LIMITATION OF LIABILITY. - - UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT - (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL - DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, - OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR - ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY - CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, - WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER - COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN - INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF - LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY - RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW - PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE - EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO - THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. - -10. U.S. GOVERNMENT END USERS. - - The Covered Code is a "commercial item," as that term is defined in - 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer - software" and "commercial computer software documentation," as such - terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 - C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), - all U.S. Government End Users acquire Covered Code with only those - rights set forth herein. - -11. MISCELLANEOUS. - - This License represents the complete agreement concerning subject - matter hereof. If any provision of this License is held to be - unenforceable, such provision shall be reformed only to the extent - necessary to make it enforceable. This License shall be governed by - California law provisions (except to the extent applicable law, if - any, provides otherwise), excluding its conflict-of-law provisions. - With respect to disputes in which at least one party is a citizen of, - or an entity chartered or registered to do business in the United - States of America, any litigation relating to this License shall be - subject to the jurisdiction of the Federal Courts of the Northern - District of California, with venue lying in Santa Clara County, - California, with the losing party responsible for costs, including - without limitation, court costs and reasonable attorneys' fees and - expenses. The application of the United Nations Convention on - Contracts for the International Sale of Goods is expressly excluded. - Any law or regulation which provides that the language of a contract - shall be construed against the drafter shall not apply to this - License. - -12. RESPONSIBILITY FOR CLAIMS. - - As between Initial Developer and the Contributors, each party is - responsible for claims and damages arising, directly or indirectly, - out of its utilization of rights under this License and You agree to - work with Initial Developer and Contributors to distribute such - responsibility on an equitable basis. Nothing herein is intended or - shall be deemed to constitute any admission of liability. - -13. MULTIPLE-LICENSED CODE. - - Initial Developer may designate portions of the Covered Code as - "Multiple-Licensed". "Multiple-Licensed" means that the Initial - Developer permits you to utilize portions of the Covered Code under - Your choice of the NPL or the alternative licenses, if any, specified - by the Initial Developer in the file described in Exhibit A. - -EXHIBIT A -Mozilla Public License. - - ``The contents of this file are subject to the Mozilla Public License - Version 1.1 (the "License"); you may not use this file except in - compliance with the License. You may obtain a copy of the License at - http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS IS" - basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the - License for the specific language governing rights and limitations - under the License. - - The Original Code is ______________________________________. - - The Initial Developer of the Original Code is ________________________. - Portions created by ______________________ are Copyright (C) ______ - _______________________. All Rights Reserved. - - Contributor(s): ______________________________________. - - Alternatively, the contents of this file may be used under the terms - of the _____ license (the "[___] License"), in which case the - provisions of [______] License are applicable instead of those - above. If you wish to allow use of your version of this file only - under the terms of the [____] License and not to allow others to use - your version of this file under the MPL, indicate your decision by - deleting the provisions above and replace them with the notice and - other provisions required by the [___] License. If you do not delete - the provisions above, a recipient may use your version of this file - under either the MPL or the [___] License." - - [NOTE: The text of this Exhibit A may differ slightly from the text of - the notices in the Source Code files of the Original Code. You should - use the text of this Exhibit A rather than the text found in the - Original Code Source Code for Your Modifications.] - diff --git a/ejabberdPrefs/config.txt b/ejabberdPrefs/config.txt deleted file mode 100644 index c1ff9d0..0000000 --- a/ejabberdPrefs/config.txt +++ /dev/null @@ -1 +0,0 @@ -/Applications/ejabberd-2.0.3 diff --git a/ejabberdPrefs/ejabberd.plist b/ejabberdPrefs/ejabberd.plist deleted file mode 100644 index 4d15b20..0000000 --- a/ejabberdPrefs/ejabberd.plist +++ /dev/null @@ -1,16 +0,0 @@ - - - - - Label - ejabberd.etc.rc.command - ProgramArguments - - /Applications/ejabberd-2.0.3/bin/ejabberdctl - start - - RunAtLoad - - - diff --git a/ejabberdPrefs/ejabberd.xcodeproj/project.pbxproj b/ejabberdPrefs/ejabberd.xcodeproj/project.pbxproj deleted file mode 100644 index 9769d16..0000000 --- a/ejabberdPrefs/ejabberd.xcodeproj/project.pbxproj +++ /dev/null @@ -1,439 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 42; - objects = { - -/* Begin PBXBuildFile section */ - 837D1CC80B635DA9003F99C1 /* ejabberd.plist in Resources */ = {isa = PBXBuildFile; fileRef = 837D1CC70B635DA9003F99C1 /* ejabberd.plist */; }; - 837F6DD209F777FF00914317 /* ejabberdController.h in Headers */ = {isa = PBXBuildFile; fileRef = 837F6DD009F777FF00914317 /* ejabberdController.h */; }; - 837F6DD309F777FF00914317 /* ejabberdController.m in Sources */ = {isa = PBXBuildFile; fileRef = 837F6DD109F777FF00914317 /* ejabberdController.m */; }; - 837F6DDD09F7E55000914317 /* logo_ejabberd.png in Resources */ = {isa = PBXBuildFile; fileRef = 837F6DDB09F7E55000914317 /* logo_ejabberd.png */; }; - 837F6DDF09F7E6FD00914317 /* logo_ejabberd.png in Resources */ = {isa = PBXBuildFile; fileRef = 837F6DDE09F7E6FD00914317 /* logo_ejabberd.png */; }; - 837F6DE409F7E8BF00914317 /* instance_started.png in Resources */ = {isa = PBXBuildFile; fileRef = 837F6DE209F7E8BF00914317 /* instance_started.png */; }; - 837F6DE509F7E8BF00914317 /* instance_stopped.png in Resources */ = {isa = PBXBuildFile; fileRef = 837F6DE309F7E8BF00914317 /* instance_stopped.png */; }; - 837F6DEE09F8D41200914317 /* config.txt in Resources */ = {isa = PBXBuildFile; fileRef = 837F6DED09F8D41200914317 /* config.txt */; }; - 8D202CEA0486D31800D8A456 /* ejabberd_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = 32DBCFA20370C41700C91783 /* ejabberd_Prefix.pch */; }; - 8D202CEB0486D31800D8A456 /* ejabberdPref.h in Headers */ = {isa = PBXBuildFile; fileRef = F506C03C013D9D7901CA16C8 /* ejabberdPref.h */; }; - 8D202CED0486D31800D8A456 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; }; - 8D202CEE0486D31800D8A456 /* ejabberdPref.tiff in Resources */ = {isa = PBXBuildFile; fileRef = F506C040013D9D8001CA16C8 /* ejabberdPref.tiff */; }; - 8D202CEF0486D31800D8A456 /* ejabberdPref.nib in Resources */ = {isa = PBXBuildFile; fileRef = F506C042013D9D8C01CA16C8 /* ejabberdPref.nib */; }; - 8D202CF10486D31800D8A456 /* ejabberdPref.m in Sources */ = {isa = PBXBuildFile; fileRef = F506C03D013D9D7901CA16C8 /* ejabberdPref.m */; }; - 8D202CF30486D31800D8A456 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */; }; - 8D202CF40486D31800D8A456 /* PreferencePanes.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F506C035013D953901CA16C8 /* PreferencePanes.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 089C1672FE841209C02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; - 089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; - 089C167FFE841241C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; - 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; - 32DBCFA20370C41700C91783 /* ejabberd_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ejabberd_Prefix.pch; sourceTree = ""; }; - 837D1CC70B635DA9003F99C1 /* ejabberd.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = ejabberd.plist; sourceTree = ""; }; - 837F6DD009F777FF00914317 /* ejabberdController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ejabberdController.h; sourceTree = ""; }; - 837F6DD109F777FF00914317 /* ejabberdController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ejabberdController.m; sourceTree = ""; }; - 837F6DDB09F7E55000914317 /* logo_ejabberd.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo_ejabberd.png; sourceTree = ""; }; - 837F6DDE09F7E6FD00914317 /* logo_ejabberd.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo_ejabberd.png; sourceTree = ""; }; - 837F6DE209F7E8BF00914317 /* instance_started.png */ = {isa = PBXFileReference; explicitFileType = image.png; path = instance_started.png; sourceTree = ""; }; - 837F6DE309F7E8BF00914317 /* instance_stopped.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = instance_stopped.png; sourceTree = ""; }; - 837F6DED09F8D41200914317 /* config.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = config.txt; sourceTree = ""; }; - 8D202CF70486D31800D8A456 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; - 8D202CF80486D31800D8A456 /* ejabberd.prefPane */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ejabberd.prefPane; sourceTree = BUILT_PRODUCTS_DIR; }; - F506C035013D953901CA16C8 /* PreferencePanes.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PreferencePanes.framework; path = /System/Library/Frameworks/PreferencePanes.framework; sourceTree = ""; }; - F506C03C013D9D7901CA16C8 /* ejabberdPref.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ejabberdPref.h; sourceTree = ""; }; - F506C03D013D9D7901CA16C8 /* ejabberdPref.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ejabberdPref.m; sourceTree = ""; }; - F506C040013D9D8001CA16C8 /* ejabberdPref.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = ejabberdPref.tiff; sourceTree = ""; }; - F506C043013D9D8C01CA16C8 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/ejabberdPref.nib; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 8D202CF20486D31800D8A456 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 8D202CF30486D31800D8A456 /* Cocoa.framework in Frameworks */, - 8D202CF40486D31800D8A456 /* PreferencePanes.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 089C166AFE841209C02AAC07 /* ejabberd */ = { - isa = PBXGroup; - children = ( - 08FB77AFFE84173DC02AAC07 /* Classes */, - 32DBCFA10370C40200C91783 /* Other Sources */, - 089C167CFE841241C02AAC07 /* Resources */, - 089C1671FE841209C02AAC07 /* Frameworks and Libraries */, - 19C28FB8FE9D52D311CA2CBB /* Products */, - ); - name = ejabberd; - sourceTree = ""; - }; - 089C1671FE841209C02AAC07 /* Frameworks and Libraries */ = { - isa = PBXGroup; - children = ( - 1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */, - 1058C7AEFEA557BF11CA2CBB /* Other Frameworks */, - ); - name = "Frameworks and Libraries"; - sourceTree = ""; - }; - 089C167CFE841241C02AAC07 /* Resources */ = { - isa = PBXGroup; - children = ( - 837F6DE209F7E8BF00914317 /* instance_started.png */, - 837F6DE309F7E8BF00914317 /* instance_stopped.png */, - 8D202CF70486D31800D8A456 /* Info.plist */, - 089C167DFE841241C02AAC07 /* InfoPlist.strings */, - F506C040013D9D8001CA16C8 /* ejabberdPref.tiff */, - F506C042013D9D8C01CA16C8 /* ejabberdPref.nib */, - 837F6DDB09F7E55000914317 /* logo_ejabberd.png */, - 837F6DDE09F7E6FD00914317 /* logo_ejabberd.png */, - 837F6DED09F8D41200914317 /* config.txt */, - ); - name = Resources; - sourceTree = ""; - }; - 08FB77AFFE84173DC02AAC07 /* Classes */ = { - isa = PBXGroup; - children = ( - F506C03C013D9D7901CA16C8 /* ejabberdPref.h */, - F506C03D013D9D7901CA16C8 /* ejabberdPref.m */, - ); - name = Classes; - sourceTree = ""; - }; - 1058C7ACFEA557BF11CA2CBB /* Linked Frameworks */ = { - isa = PBXGroup; - children = ( - 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */, - F506C035013D953901CA16C8 /* PreferencePanes.framework */, - ); - name = "Linked Frameworks"; - sourceTree = ""; - }; - 1058C7AEFEA557BF11CA2CBB /* Other Frameworks */ = { - isa = PBXGroup; - children = ( - 089C1672FE841209C02AAC07 /* Foundation.framework */, - 089C167FFE841241C02AAC07 /* AppKit.framework */, - ); - name = "Other Frameworks"; - sourceTree = ""; - }; - 19C28FB8FE9D52D311CA2CBB /* Products */ = { - isa = PBXGroup; - children = ( - 8D202CF80486D31800D8A456 /* ejabberd.prefPane */, - ); - name = Products; - sourceTree = ""; - }; - 32DBCFA10370C40200C91783 /* Other Sources */ = { - isa = PBXGroup; - children = ( - 837D1CC70B635DA9003F99C1 /* ejabberd.plist */, - 837F6DD009F777FF00914317 /* ejabberdController.h */, - 837F6DD109F777FF00914317 /* ejabberdController.m */, - 32DBCFA20370C41700C91783 /* ejabberd_Prefix.pch */, - ); - name = "Other Sources"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 8D202CE90486D31800D8A456 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 8D202CEA0486D31800D8A456 /* ejabberd_Prefix.pch in Headers */, - 8D202CEB0486D31800D8A456 /* ejabberdPref.h in Headers */, - 837F6DD209F777FF00914317 /* ejabberdController.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 8D202CE80486D31800D8A456 /* ejabberd */ = { - isa = PBXNativeTarget; - buildConfigurationList = 83231E620B57EBEA006434E8 /* Build configuration list for PBXNativeTarget "ejabberd" */; - buildPhases = ( - 8D202CE90486D31800D8A456 /* Headers */, - 8D202CEC0486D31800D8A456 /* Resources */, - 8D202CF00486D31800D8A456 /* Sources */, - 8D202CF20486D31800D8A456 /* Frameworks */, - 8D202CF50486D31800D8A456 /* Rez */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = ejabberd; - productInstallPath = "$(HOME)/Library/PreferencePanes"; - productName = ejabberd; - productReference = 8D202CF80486D31800D8A456 /* ejabberd.prefPane */; - productType = "com.apple.product-type.bundle"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 089C1669FE841209C02AAC07 /* Project object */ = { - isa = PBXProject; - buildConfigurationList = 83231E660B57EBEA006434E8 /* Build configuration list for PBXProject "ejabberd" */; - hasScannedForEncodings = 1; - mainGroup = 089C166AFE841209C02AAC07 /* ejabberd */; - projectDirPath = ""; - targets = ( - 8D202CE80486D31800D8A456 /* ejabberd */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 8D202CEC0486D31800D8A456 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8D202CED0486D31800D8A456 /* InfoPlist.strings in Resources */, - 8D202CEE0486D31800D8A456 /* ejabberdPref.tiff in Resources */, - 8D202CEF0486D31800D8A456 /* ejabberdPref.nib in Resources */, - 837F6DDD09F7E55000914317 /* logo_ejabberd.png in Resources */, - 837F6DDF09F7E6FD00914317 /* logo_ejabberd.png in Resources */, - 837F6DE409F7E8BF00914317 /* instance_started.png in Resources */, - 837F6DE509F7E8BF00914317 /* instance_stopped.png in Resources */, - 837F6DEE09F8D41200914317 /* config.txt in Resources */, - 837D1CC80B635DA9003F99C1 /* ejabberd.plist in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXRezBuildPhase section */ - 8D202CF50486D31800D8A456 /* Rez */ = { - isa = PBXRezBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXRezBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 8D202CF00486D31800D8A456 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8D202CF10486D31800D8A456 /* ejabberdPref.m in Sources */, - 837F6DD309F777FF00914317 /* ejabberdController.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 089C167DFE841241C02AAC07 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 089C167EFE841241C02AAC07 /* English */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; - F506C042013D9D8C01CA16C8 /* ejabberdPref.nib */ = { - isa = PBXVariantGroup; - children = ( - F506C043013D9D8C01CA16C8 /* English */, - ); - name = ejabberdPref.nib; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 83231E630B57EBEA006434E8 /* Development */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ( - ppc, - i386, - ); - COPY_PHASE_STRIP = NO; - DEBUGGING_SYMBOLS = YES; - FRAMEWORK_SEARCH_PATHS = ""; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; - GCC_ENABLE_TRIGRAPHS = NO; - GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ejabberd_Prefix.pch; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO; - GCC_WARN_UNKNOWN_PRAGMAS = NO; - HEADER_SEARCH_PATHS = ""; - INFOPLIST_FILE = Info.plist; - INSTALL_PATH = "$(HOME)/Library/PreferencePanes"; - LIBRARY_SEARCH_PATHS = ""; - LIBRARY_STYLE = Bundle; - OPTIMIZATION_CFLAGS = "-O0"; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ( - "-bundle", - "-twolevel_namespace", - ); - OTHER_REZFLAGS = ""; - PRODUCT_NAME = ejabberd; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = ( - "-Wmost", - "-Wno-four-char-constants", - "-Wno-unknown-pragmas", - ); - WRAPPER_EXTENSION = prefPane; - ZERO_LINK = YES; - }; - name = Development; - }; - 83231E640B57EBEA006434E8 /* Deployment */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ( - ppc, - i386, - ); - COPY_PHASE_STRIP = YES; - FRAMEWORK_SEARCH_PATHS = ""; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_ENABLE_TRIGRAPHS = NO; - GCC_GENERATE_DEBUGGING_SYMBOLS = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ejabberd_Prefix.pch; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO; - GCC_WARN_UNKNOWN_PRAGMAS = NO; - HEADER_SEARCH_PATHS = ""; - INFOPLIST_FILE = Info.plist; - INSTALL_PATH = "$(HOME)/Library/PreferencePanes"; - LIBRARY_SEARCH_PATHS = ""; - LIBRARY_STYLE = Bundle; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ( - "-bundle", - "-twolevel_namespace", - ); - OTHER_REZFLAGS = ""; - PRODUCT_NAME = ejabberd; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = ( - "-Wmost", - "-Wno-four-char-constants", - "-Wno-unknown-pragmas", - ); - WRAPPER_EXTENSION = prefPane; - ZERO_LINK = NO; - }; - name = Deployment; - }; - 83231E650B57EBEA006434E8 /* Default */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ( - ppc, - i386, - ); - FRAMEWORK_SEARCH_PATHS = ""; - GCC_ENABLE_TRIGRAPHS = NO; - GCC_GENERATE_DEBUGGING_SYMBOLS = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ejabberd_Prefix.pch; - GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; - GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO; - GCC_WARN_UNKNOWN_PRAGMAS = NO; - HEADER_SEARCH_PATHS = ""; - INFOPLIST_FILE = Info.plist; - INSTALL_PATH = "$(HOME)/Library/PreferencePanes"; - LIBRARY_SEARCH_PATHS = ""; - LIBRARY_STYLE = Bundle; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ( - "-bundle", - "-twolevel_namespace", - ); - OTHER_REZFLAGS = ""; - PRODUCT_NAME = ejabberd; - SECTORDER_FLAGS = ""; - WARNING_CFLAGS = ( - "-Wmost", - "-Wno-four-char-constants", - "-Wno-unknown-pragmas", - ); - WRAPPER_EXTENSION = prefPane; - }; - name = Default; - }; - 83231E670B57EBEA006434E8 /* Development */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ( - ppc, - i386, - ); - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; - }; - name = Development; - }; - 83231E680B57EBEA006434E8 /* Deployment */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ( - ppc, - i386, - ); - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; - }; - name = Deployment; - }; - 83231E690B57EBEA006434E8 /* Default */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = ( - ppc, - i386, - ); - SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; - }; - name = Default; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 83231E620B57EBEA006434E8 /* Build configuration list for PBXNativeTarget "ejabberd" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 83231E630B57EBEA006434E8 /* Development */, - 83231E640B57EBEA006434E8 /* Deployment */, - 83231E650B57EBEA006434E8 /* Default */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Deployment; - }; - 83231E660B57EBEA006434E8 /* Build configuration list for PBXProject "ejabberd" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 83231E670B57EBEA006434E8 /* Development */, - 83231E680B57EBEA006434E8 /* Deployment */, - 83231E690B57EBEA006434E8 /* Default */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Deployment; - }; -/* End XCConfigurationList section */ - }; - rootObject = 089C1669FE841209C02AAC07 /* Project object */; -} diff --git a/ejabberdPrefs/ejabberdController.h b/ejabberdPrefs/ejabberdController.h deleted file mode 100644 index c42d1de..0000000 --- a/ejabberdPrefs/ejabberdController.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// ejabberdController.h -// ejabberd preference pane -// -// Created on Wed Apr 19 2006. -// Copyright (c) 2006-2009 ProcessOne. -// - -#import - -@interface ejabberdController : NSObject -{ - IBOutlet NSTextField *status; - //IBOutlet NSImageView *image; - IBOutlet NSImageView *imagestarted; - IBOutlet NSImageView *imagestopped; - IBOutlet NSProgressIndicator *actionProgress; - IBOutlet NSButton *startStopButton; - IBOutlet NSButton *automaticBox; - BOOL started; - char startscript[128]; - char stopscript[128]; - char statusscript[128]; - char waitstartedscript[128]; - char waitstoppedscript[128]; -} -- (void)setStarted:(BOOL)flag; -- (BOOL)isStarted; -- (void)getRunningStatus; -- (void)waitRunningStatus; -- (void)updateRunningStatus; -- (IBAction)startStopAction:(id)sender; -- (IBAction)automaticStartAction:(id)sender; -@end diff --git a/ejabberdPrefs/ejabberdController.m b/ejabberdPrefs/ejabberdController.m deleted file mode 100644 index ca474f3..0000000 --- a/ejabberdPrefs/ejabberdController.m +++ /dev/null @@ -1,125 +0,0 @@ -// -// ejabberdController.m -// ejabberd preference pane -// -// Created on Wed Apr 19 2006. -// Copyright (c) 2006-2009 ProcessOne. -// - - -#import "ejabberdController.h" -#include -#include -#include - -@implementation ejabberdController - -- (id) init -{ - if((self = [super init])) { - [self performSelector:@selector(getRunningStatus) withObject:self afterDelay:0.5]; - /* - [automaticBox setState:1]; - [automaticBox setNeedsDisplay]; - NSDictionary *defaultDefaults = [[NSDictionary alloc] initWithContentsOfFile: - [bundle pathForResource:@"ejabberdPath" ofType:@"plist"]]; - [[EjabberdPreferences preferences] registerDefaults:defaultDefaults]; - [defaultDefaults release]; - */ - //TODO: This is very dirty code. need rewrite by MacOS/ObjC coder. - FILE *file; - char conf[255]; - strcpy(conf, getenv("HOME")); - strcat(conf, "/Library/PreferencePanes/ejabberd.prefPane/Contents/Resources/config.txt"); - file = fopen(conf,"r"); - char path[255], *ptr; - memset(path, 0, 128); - fgets(path, 127, file); - for(ptr=path; *ptr; ptr++) - { - if(*ptr==10) *ptr=0; - if(*ptr==13) *ptr=0; - } - fclose(file); - sprintf(startscript, "%s/bin/ejabberdctl start", path); - sprintf(stopscript, "%s/bin/ejabberdctl stop", path); - sprintf(statusscript, "%s/bin/ejabberdctl status", path); - sprintf(waitstartedscript, "%s/bin/ejabberdctl started", path); - sprintf(waitstoppedscript, "%s/bin/ejabberdctl stopped", path); - } - return self; -} - -- (void) setStarted:(BOOL)flag -{ - started = flag; -} - -- (BOOL) isStarted -{ - return started; -} - -- (void) getRunningStatus -{ - [actionProgress startAnimation:self]; - started = (system(statusscript) == 0); - [self updateRunningStatus]; -} - -- (void) waitRunningStatus -{ - [actionProgress startAnimation:self]; - system(started?waitstartedscript:waitstoppedscript); - [self getRunningStatus]; -} - -- (void) updateRunningStatus -{ - //[startStopButton setTitle:isStarted - // ? NSLocalizedStringFromTableInBundle(@"Stop ejabberd",nil,bundle,@"") - // : NSLocalizedStringFromTableInBundle(@"Start ejabberd",nil,bundle,@"")]; - if(started) - { - [startStopButton setTitle:@"Stop ejabberd"]; - [status setStringValue:@"ejabberd is started."]; - [imagestarted setHidden:NO]; - [imagestopped setHidden:YES]; - } else { - [startStopButton setTitle:@"Start ejabberd"]; - [status setStringValue:@"ejabberd is stopped."]; - [imagestarted setHidden:YES]; - [imagestopped setHidden:NO]; - } - [actionProgress stopAnimation:self]; -} - --(IBAction)startStopAction:(id)sender -{ - [actionProgress startAnimation:self]; - if(started) - { - [status setStringValue:@"Stopping ejabberd..."]; - started = !(system(stopscript) == 0); - } else { - [status setStringValue:@"Starting ejabberd..."]; - started = (system(startscript) == 0); - } - [self performSelector:@selector(waitRunningStatus) withObject:self afterDelay:0.5]; -} - --(IBAction)automaticStartAction:(id)sender -{ - //TODO: implement autostart - if([automaticBox state]) - { - system("mkdir -p ~/Library/LaunchDaemons"); - system("cp /Library/PreferencePanes/ejabberd.prefPane/Contents/Resources/ejabberd.plist ~/Library/LaunchDaemons"); - system("launchctl load ~/Library/LaunchDaemons/ejabberd.plist"); - } else { - system("launchctl unload ~/Library/LaunchDaemons/ejabberd.plist"); - system("rm ~/Library/LaunchDaemons/ejabberd.plist"); - } -} - -@end diff --git a/ejabberdPrefs/ejabberdPref.h b/ejabberdPrefs/ejabberdPref.h deleted file mode 100644 index 59f6627..0000000 --- a/ejabberdPrefs/ejabberdPref.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// ejabberdPref.h -// ejabberd preference pane -// -// Created on Wed Apr 19 2006. -// Copyright (c) 2006-2009 ProcessOne. -// - -#import - - -@interface ejabberdPref : NSPreferencePane -{ - -} - -- (void) mainViewDidLoad; - -@end diff --git a/ejabberdPrefs/ejabberdPref.m b/ejabberdPrefs/ejabberdPref.m deleted file mode 100644 index ce7e168..0000000 --- a/ejabberdPrefs/ejabberdPref.m +++ /dev/null @@ -1,19 +0,0 @@ -// -// ejabberdPref.m -// ejabberd preference pane -// -// Created on Wed Apr 19 2006. -// Copyright (c) 2006-2009 ProcessOne. -// - -#import "ejabberdPref.h" - - -@implementation ejabberdPref - -- (void) mainViewDidLoad -{ - //ejabberdPref->ejabberdController -} - -@end diff --git a/ejabberdPrefs/ejabberdPref.tiff b/ejabberdPrefs/ejabberdPref.tiff deleted file mode 100644 index ea838cb..0000000 Binary files a/ejabberdPrefs/ejabberdPref.tiff and /dev/null differ diff --git a/ejabberdPrefs/ejabberd_Prefix.pch b/ejabberdPrefs/ejabberd_Prefix.pch deleted file mode 100644 index f1143d7..0000000 --- a/ejabberdPrefs/ejabberd_Prefix.pch +++ /dev/null @@ -1,8 +0,0 @@ -// -// Prefix header for all source files of the 'ejabberd' target in the 'ejabberd' project. -// - -#ifdef __OBJC__ - #import - #import -#endif diff --git a/ejabberdPrefs/instance_started.png b/ejabberdPrefs/instance_started.png deleted file mode 100644 index 06da6a2..0000000 Binary files a/ejabberdPrefs/instance_started.png and /dev/null differ diff --git a/ejabberdPrefs/instance_stopped.png b/ejabberdPrefs/instance_stopped.png deleted file mode 100644 index 232d4f8..0000000 Binary files a/ejabberdPrefs/instance_stopped.png and /dev/null differ diff --git a/ejabberdPrefs/logo_ejabberd.png b/ejabberdPrefs/logo_ejabberd.png deleted file mode 100644 index edd9a53..0000000 Binary files a/ejabberdPrefs/logo_ejabberd.png and /dev/null differ diff --git a/ejabberdPrefs/version.plist b/ejabberdPrefs/version.plist deleted file mode 100644 index c12b708..0000000 --- a/ejabberdPrefs/version.plist +++ /dev/null @@ -1,16 +0,0 @@ - - - - - BuildVersion - 54 - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1.0 - ProjectName - PreferencePaneTemplate - SourceVersion - 120000 - -