From 49c6a79a591c940c352ed387019fa4500309c5e3 Mon Sep 17 00:00:00 2001 From: Waldemar Kornewald Date: Sat, 19 Jun 2004 15:48:39 +0000 Subject: [PATCH] Changed license header to include the full MIT license instead of referring to the OpenBeOS license (there is no OpenBeOS anymore). Added resource definition. Exported dial-up view as static library for reuse by ppp_up. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8063 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../DialUpPreflet/ConnectionOptionsAddon.cpp | 27 +++++++++++--- .../DialUpPreflet/ConnectionOptionsAddon.h | 27 +++++++++++--- .../kits/net/DialUpPreflet/DialUpAddon.h | 25 +++++++++++-- .../net/DialUpPreflet/DialUpApplication.cpp | 27 +++++++++++--- .../kits/net/DialUpPreflet/DialUpPreflet.rdef | 37 +++++++++++++++++++ .../kits/net/DialUpPreflet/DialUpView.cpp | 34 ++++++++++++++--- src/tests/kits/net/DialUpPreflet/DialUpView.h | 32 ++++++++++++---- .../kits/net/DialUpPreflet/GeneralAddon.cpp | 34 ++++++++++++++--- .../kits/net/DialUpPreflet/GeneralAddon.h | 29 ++++++++++++--- .../kits/net/DialUpPreflet/IPCPAddon.cpp | 27 +++++++++++--- src/tests/kits/net/DialUpPreflet/IPCPAddon.h | 27 +++++++++++--- .../kits/net/DialUpPreflet/InterfaceUtils.cpp | 27 +++++++++++--- .../kits/net/DialUpPreflet/InterfaceUtils.h | 27 +++++++++++--- src/tests/kits/net/DialUpPreflet/Jamfile | 11 ++++-- .../MessageDriverSettingsUtils.cpp | 27 +++++++++++--- .../MessageDriverSettingsUtils.h | 27 +++++++++++--- .../kits/net/DialUpPreflet/PPPoEAddon.cpp | 27 +++++++++++--- src/tests/kits/net/DialUpPreflet/PPPoEAddon.h | 27 +++++++++++--- .../net/DialUpPreflet/TextRequestDialog.cpp | 27 +++++++++++--- .../net/DialUpPreflet/TextRequestDialog.h | 27 +++++++++++--- 20 files changed, 450 insertions(+), 103 deletions(-) create mode 100644 src/tests/kits/net/DialUpPreflet/DialUpPreflet.rdef diff --git a/src/tests/kits/net/DialUpPreflet/ConnectionOptionsAddon.cpp b/src/tests/kits/net/DialUpPreflet/ConnectionOptionsAddon.cpp index 0aa1c08202..4cab6915e5 100644 --- a/src/tests/kits/net/DialUpPreflet/ConnectionOptionsAddon.cpp +++ b/src/tests/kits/net/DialUpPreflet/ConnectionOptionsAddon.cpp @@ -1,8 +1,25 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de +/* ----------------------------------------------------------------------- + * Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ + //----------------------------------------------------------------------- // ConnectionOptionsAddon saves the loaded settings. // ConnectionOptionsView saves the current settings. diff --git a/src/tests/kits/net/DialUpPreflet/ConnectionOptionsAddon.h b/src/tests/kits/net/DialUpPreflet/ConnectionOptionsAddon.h index 71d8ccd0eb..9c263c602b 100644 --- a/src/tests/kits/net/DialUpPreflet/ConnectionOptionsAddon.h +++ b/src/tests/kits/net/DialUpPreflet/ConnectionOptionsAddon.h @@ -1,8 +1,25 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de +/* ----------------------------------------------------------------------- + * Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ + //----------------------------------------------------------------------- // ConnectionOptionsAddon saves the loaded settings. // ConnectionOptionsView saves the current settings. diff --git a/src/tests/kits/net/DialUpPreflet/DialUpAddon.h b/src/tests/kits/net/DialUpPreflet/DialUpAddon.h index 5ef2db2c76..a9aa2d5a88 100644 --- a/src/tests/kits/net/DialUpPreflet/DialUpAddon.h +++ b/src/tests/kits/net/DialUpPreflet/DialUpAddon.h @@ -1,7 +1,24 @@ -/* - This software may be distributed under the OpenBeOS license. - Copyright (c) 2004, OpenBeOS -*/ +/* ----------------------------------------------------------------------- + * Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ /*! \class DialUpAddon \brief Base class for DialUpPreflet add-ons. diff --git a/src/tests/kits/net/DialUpPreflet/DialUpApplication.cpp b/src/tests/kits/net/DialUpPreflet/DialUpApplication.cpp index d3c6b3d007..290de28f9e 100644 --- a/src/tests/kits/net/DialUpPreflet/DialUpApplication.cpp +++ b/src/tests/kits/net/DialUpPreflet/DialUpApplication.cpp @@ -1,9 +1,24 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de -//----------------------------------------------------------------------- +/* ----------------------------------------------------------------------- + * Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ #include #include diff --git a/src/tests/kits/net/DialUpPreflet/DialUpPreflet.rdef b/src/tests/kits/net/DialUpPreflet/DialUpPreflet.rdef new file mode 100644 index 0000000000..5a3045c3a3 --- /dev/null +++ b/src/tests/kits/net/DialUpPreflet/DialUpPreflet.rdef @@ -0,0 +1,37 @@ +/* + DialUpPreflet.rdef +*/ + +resource app_signature "application/x-obos.dial-up-preflet"; + +/* BEOS:APP_FLAGS : + 00000000 = SINGLE LAUNCH + 00000001 = MULTIPLE LAUNCH + 00000002 = EXCLUSIVE LAUNCH + 00000004 = BACKGROUND APP + SINGLE LAUNCH + 00000005 = BACKGROUND APP + MULTIPLE LAUNCH + 00000006 = BACKGROUND APP + EXCLUSIVE LAUNCH + 00000008 = ARGV_ONLY + SINGLE LAUNCH + 00000009 = ARGV_ONLY + MULTIPLE LAUNCH + 0000000A = ARGV_ONLY + EXCLUSIVE LAUNCH + 0000000C = ARGV_ONLY + BACKGROUND APP + SINGLE LAUNCH + 0000000D = ARGV_ONLY + BACKGROUND APP + MULTIPLE LAUNCH + 0000000E = ARGV_ONLY + BACKGROUND APP + EXCLUSIVE LAUNCH +*/ + +resource app_flags 0x00000000; + +resource app_version { + major = 0, + middle = 1, + minor = 0, + + /* 0 = development 1 = alpha 2 = beta + 3 = gamma 4 = golden master 5 = final */ + variety = 0, + + internal = 0, + + short_info = "DialUpPreflet", + long_info = "PPP interface configuration tool." +}; diff --git a/src/tests/kits/net/DialUpPreflet/DialUpView.cpp b/src/tests/kits/net/DialUpPreflet/DialUpView.cpp index 50239cb409..97677a6886 100644 --- a/src/tests/kits/net/DialUpPreflet/DialUpView.cpp +++ b/src/tests/kits/net/DialUpPreflet/DialUpView.cpp @@ -1,9 +1,24 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de -//----------------------------------------------------------------------- +/* ----------------------------------------------------------------------- + * Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ #include "DialUpView.h" #include "DialUpAddon.h" @@ -324,6 +339,13 @@ DialUpView::SelectInterfaceNamed(const char *name) } +bool +DialUpView::NeedsRequest() const +{ + return fGeneralAddon ? fGeneralAddon->NeedsAuthenticationRequest() : false; +} + + BView* DialUpView::AuthenticationView() const { diff --git a/src/tests/kits/net/DialUpPreflet/DialUpView.h b/src/tests/kits/net/DialUpPreflet/DialUpView.h index 272667a1cc..b3399da14d 100644 --- a/src/tests/kits/net/DialUpPreflet/DialUpView.h +++ b/src/tests/kits/net/DialUpPreflet/DialUpView.h @@ -1,9 +1,24 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de -//----------------------------------------------------------------------- +/* ----------------------------------------------------------------------- + * Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ #ifndef _DIAL_UP_VIEW__H #define _DIAL_UP_VIEW__H @@ -28,9 +43,12 @@ class DialUpView : public BView { // used by ppp_up application bool SelectInterfaceNamed(const char *name); + bool NeedsRequest() const; BView *AuthenticationView() const; BView *StatusView() const; BView *ConnectButton() const; + bool SaveSettings(BMessage *settings, BMessage *profile, bool saveTemporary); + bool SaveSettingsToFile(); private: void GetPPPDirectories(BDirectory *settingsDirectory, @@ -44,8 +62,6 @@ class DialUpView : public BView { bool LoadSettings(bool isNew); void IsModified(bool *settings, bool *profile); - bool SaveSettings(BMessage *settings, BMessage *profile, bool saveTemporary); - bool SaveSettingsToFile(); void LoadInterfaces(); void LoadAddons(); diff --git a/src/tests/kits/net/DialUpPreflet/GeneralAddon.cpp b/src/tests/kits/net/DialUpPreflet/GeneralAddon.cpp index de584f041e..5879ab5700 100644 --- a/src/tests/kits/net/DialUpPreflet/GeneralAddon.cpp +++ b/src/tests/kits/net/DialUpPreflet/GeneralAddon.cpp @@ -1,8 +1,25 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de +/* ----------------------------------------------------------------------- + * Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ + //----------------------------------------------------------------------- // GeneralAddon saves the loaded settings. // GeneralView saves the current settings. @@ -77,6 +94,13 @@ GeneralAddon::~GeneralAddon() } +bool +GeneralAddon::NeedsAuthenticationRequest() const +{ + return fGeneralView->AuthenticatorName(); +} + + DialUpAddon* GeneralAddon::FindDevice(const BString& moduleName) const { diff --git a/src/tests/kits/net/DialUpPreflet/GeneralAddon.h b/src/tests/kits/net/DialUpPreflet/GeneralAddon.h index b278ef3ad2..cbb2b96aa1 100644 --- a/src/tests/kits/net/DialUpPreflet/GeneralAddon.h +++ b/src/tests/kits/net/DialUpPreflet/GeneralAddon.h @@ -1,8 +1,25 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de +/* ----------------------------------------------------------------------- + * Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ + //----------------------------------------------------------------------- // GeneralAddon saves the loaded settings. // GeneralView saves the current settings. @@ -37,6 +54,8 @@ class GeneralAddon : public DialUpAddon { bool HasPassword() const { return fHasPassword; } + bool NeedsAuthenticationRequest() const; + DialUpAddon *FindDevice(const BString& moduleName) const; DialUpAddon *DeviceAddon() const { return fDeviceAddon; } diff --git a/src/tests/kits/net/DialUpPreflet/IPCPAddon.cpp b/src/tests/kits/net/DialUpPreflet/IPCPAddon.cpp index 724ac5c03b..606bcfe741 100644 --- a/src/tests/kits/net/DialUpPreflet/IPCPAddon.cpp +++ b/src/tests/kits/net/DialUpPreflet/IPCPAddon.cpp @@ -1,8 +1,25 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de +/* ----------------------------------------------------------------------- + * Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ + //----------------------------------------------------------------------- // IPCPAddon saves the loaded settings. // IPCPView saves the current settings. diff --git a/src/tests/kits/net/DialUpPreflet/IPCPAddon.h b/src/tests/kits/net/DialUpPreflet/IPCPAddon.h index 7ec48e083f..11d754e8e0 100644 --- a/src/tests/kits/net/DialUpPreflet/IPCPAddon.h +++ b/src/tests/kits/net/DialUpPreflet/IPCPAddon.h @@ -1,8 +1,25 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de +/* ----------------------------------------------------------------------- + * Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ + //----------------------------------------------------------------------- // IPCPAddon saves the loaded settings. // IPCPView saves the current settings. diff --git a/src/tests/kits/net/DialUpPreflet/InterfaceUtils.cpp b/src/tests/kits/net/DialUpPreflet/InterfaceUtils.cpp index a2de444dc5..aae28c6ee0 100644 --- a/src/tests/kits/net/DialUpPreflet/InterfaceUtils.cpp +++ b/src/tests/kits/net/DialUpPreflet/InterfaceUtils.cpp @@ -1,9 +1,24 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de -//----------------------------------------------------------------------- +/* ----------------------------------------------------------------------- + * Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ #include "InterfaceUtils.h" diff --git a/src/tests/kits/net/DialUpPreflet/InterfaceUtils.h b/src/tests/kits/net/DialUpPreflet/InterfaceUtils.h index 2a5b11d554..dd8626c674 100644 --- a/src/tests/kits/net/DialUpPreflet/InterfaceUtils.h +++ b/src/tests/kits/net/DialUpPreflet/InterfaceUtils.h @@ -1,9 +1,24 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de -//----------------------------------------------------------------------- +/* ----------------------------------------------------------------------- + * Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ #ifndef _INTERFACE_UTILS__H #define _INTERFACE_UTILS__H diff --git a/src/tests/kits/net/DialUpPreflet/Jamfile b/src/tests/kits/net/DialUpPreflet/Jamfile index f26b47573a..e3e77d7b60 100644 --- a/src/tests/kits/net/DialUpPreflet/Jamfile +++ b/src/tests/kits/net/DialUpPreflet/Jamfile @@ -21,8 +21,9 @@ UseHeaders [ FDirName $(OBOS_TOP) src add-ons kernel network ppp shared libkerne UseHeaders [ FDirName $(OBOS_TOP) src add-ons kernel network ppp pppoe ] ; # PPPoE UseHeaders [ FDirName $(OBOS_TOP) src add-ons kernel network ppp ipcp ] ; # IPCP -SimpleTest DialUpPreflet : - DialUpApplication.cpp +AddResources DialUpPreflet : DialUpPreflet.rdef ; + +StaticLibrary dunview : DialUpView.cpp # utils @@ -37,4 +38,8 @@ SimpleTest DialUpPreflet : PPPoEAddon.cpp ; -LinkSharedOSLibs DialUpPreflet : libppp.a be ; +SimpleTest DialUpPreflet : + DialUpApplication.cpp +; + +LinkSharedOSLibs DialUpPreflet : libdunview.a libppp.a be ; diff --git a/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.cpp b/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.cpp index ef76fa2350..3c1724ecf8 100644 --- a/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.cpp +++ b/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.cpp @@ -1,9 +1,24 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de -//----------------------------------------------------------------------- +/* ----------------------------------------------------------------------- + * Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ #include "MessageDriverSettingsUtils.h" diff --git a/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.h b/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.h index 791aaa5320..40ab975922 100644 --- a/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.h +++ b/src/tests/kits/net/DialUpPreflet/MessageDriverSettingsUtils.h @@ -1,9 +1,24 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de -//----------------------------------------------------------------------- +/* ----------------------------------------------------------------------- + * Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ #ifndef _MESSAGE_DRIVER_SETTINGS_UTILS__H #define _MESSAGE_DRIVER_SETTINGS_UTILS__H diff --git a/src/tests/kits/net/DialUpPreflet/PPPoEAddon.cpp b/src/tests/kits/net/DialUpPreflet/PPPoEAddon.cpp index 5efdbfdd73..850b656334 100644 --- a/src/tests/kits/net/DialUpPreflet/PPPoEAddon.cpp +++ b/src/tests/kits/net/DialUpPreflet/PPPoEAddon.cpp @@ -1,8 +1,25 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de +/* ----------------------------------------------------------------------- + * Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ + //----------------------------------------------------------------------- // PPPoEAddon saves the loaded settings. // PPPoEView saves the current settings. diff --git a/src/tests/kits/net/DialUpPreflet/PPPoEAddon.h b/src/tests/kits/net/DialUpPreflet/PPPoEAddon.h index 2739ba92f6..a969370b18 100644 --- a/src/tests/kits/net/DialUpPreflet/PPPoEAddon.h +++ b/src/tests/kits/net/DialUpPreflet/PPPoEAddon.h @@ -1,8 +1,25 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de +/* ----------------------------------------------------------------------- + * Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ + //----------------------------------------------------------------------- // PPPoEAddon saves the loaded settings. // PPPoEView saves the current settings. diff --git a/src/tests/kits/net/DialUpPreflet/TextRequestDialog.cpp b/src/tests/kits/net/DialUpPreflet/TextRequestDialog.cpp index 5c7e328769..23d8f9b06c 100644 --- a/src/tests/kits/net/DialUpPreflet/TextRequestDialog.cpp +++ b/src/tests/kits/net/DialUpPreflet/TextRequestDialog.cpp @@ -1,9 +1,24 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de -//----------------------------------------------------------------------- +/* ----------------------------------------------------------------------- + * Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ #include "TextRequestDialog.h" #include "InterfaceUtils.h" diff --git a/src/tests/kits/net/DialUpPreflet/TextRequestDialog.h b/src/tests/kits/net/DialUpPreflet/TextRequestDialog.h index 194552e8dc..0f9f1677ef 100644 --- a/src/tests/kits/net/DialUpPreflet/TextRequestDialog.h +++ b/src/tests/kits/net/DialUpPreflet/TextRequestDialog.h @@ -1,9 +1,24 @@ -//----------------------------------------------------------------------- -// This software is part of the OpenBeOS distribution and is covered -// by the OpenBeOS license. -// -// Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de -//----------------------------------------------------------------------- +/* ----------------------------------------------------------------------- + * Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * ----------------------------------------------------------------------- */ #ifndef _TEXT_REQUEST_DIALOG__H #define _TEXT_REQUEST_DIALOG__H