Commit e061e231e44a0f538cd1c9123b692d168a576de0
- Diff rendering mode:
- inline
- side by side
NEWS
(1 / 0)
|   | |||
| 7 | 7 | * Use Debian packages as dependency sources | |
| 8 | 8 | * visual-ldd: Pulled from Autopackage | |
| 9 | 9 | * visual-ldd: Ported to Qt4, updated GUI and added few more features | |
| 10 | * Pulled apbuild from Autopackage | ||
| 10 | 11 | ||
| 11 | 12 | Specifications: | |
| 12 | 13 | * Updated databse layout to new format |
lib/makebind
(4 / 4)
|   | |||
| 2 | 2 | set -e | |
| 3 | 3 | GEN="../build/util/makecbind" | |
| 4 | 4 | if [ -e $GEN ]; then | |
| 5 | $GEN -i ../intf/appman.pas -o ./cbind/li-manager.h --template=./cbind/cheader.template | ||
| 6 | $GEN -i ../intf/installer.pas -o ./cbind/li-installer.h --template=./cbind/cheader.template | ||
| 7 | $GEN -i ../intf/appupdate.pas -o ./cbind/li-updater.h --template=./cbind/cheader.template | ||
| 5 | $GEN -i ../src/bind/liappmgr.pas -o ./cbind/li-manager.h --template=./cbind/cheader.template | ||
| 6 | $GEN -i ../src/bind/liinstaller.pas -o ./cbind/li-installer.h --template=./cbind/cheader.template | ||
| 7 | $GEN -i ../src/bind/liappupdate.pas -o ./cbind/li-updater.h --template=./cbind/cheader.template | ||
| 8 | 8 | $GEN -i ../src/litypes.pas -o ./cbind/li-types.h --template=./cbind/cheader.template | |
| 9 | 9 | else | |
| 10 | echo "makecbind was not found!" | ||
| 10 | echo "MakeCBind was not found!" | ||
| 11 | 11 | exit 1 | |
| 12 | 12 | fi |
src/bind/appman.pas
(0 / 40)
|   | |||
| 1 | { Copyright (C) 2008-2010 Matthias Klumpp | ||
| 2 | |||
| 3 | Authors: | ||
| 4 | Matthias Klumpp | ||
| 5 | |||
| 6 | This unit is free software: you can redistribute it and/or modify it under | ||
| 7 | the terms of the GNU General Public License as published by the Free Software | ||
| 8 | Foundation, version 3. | ||
| 9 | |||
| 10 | This unit is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| 12 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License v3 | ||
| 15 | along with this unit. If not, see <http://www.gnu.org/licenses/>.} | ||
| 16 | //** This unit contains libInstaller functions to manage applications | ||
| 17 | unit appman; | ||
| 18 | |||
| 19 | {$mode objfpc}{$H+} | ||
| 20 | |||
| 21 | interface | ||
| 22 | |||
| 23 | uses | ||
| 24 | Classes, SysUtils, glib2, liTypes; | ||
| 25 | |||
| 26 | function li_mgr_new: GPointer;cdecl;external libinst; | ||
| 27 | procedure li_mgr_free(mgr: GPointer);cdecl;external libinst; | ||
| 28 | function li_mgr_load_apps(mgr: GPointer): GBoolean;cdecl;external libinst; | ||
| 29 | function li_mgr_register_status_call(mgr: GPointer;call: TLiStatusChangeCall; user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 30 | function li_mgr_register_request_call(mgr: GPointer;call: TRequestCall;user_data: GPointer): TRqResult;cdecl;external libinst; | ||
| 31 | function li_mgr_register_app_call(mgr: GPointer;call: TAppEvent): GBoolean;cdecl;external libinst; | ||
| 32 | procedure li_mgr_set_sumode(mgr: GPointer;md: GBoolean);cdecl;external libinst; | ||
| 33 | function li_mgr_remove_app(mgr: GPointer;obj: TAppInfo): GBoolean;cdecl;external libinst; | ||
| 34 | function li_remove_ipk_installed_app(appname, appid: PChar;scall: TLiStatusChangeCall;fastmode: GBoolean): GBoolean; cdecl; external libinst; | ||
| 35 | function li_mgr_check_apps(mgr: GPointer;log: PStringList;root: GBoolean): GBoolean;cdecl;external libinst; | ||
| 36 | function li_mgr_fix_apps(mgr: GPointer;log: PStringList;root: GBoolean): GBoolean;cdecl;external libinst; | ||
| 37 | |||
| 38 | implementation | ||
| 39 | |||
| 40 | end. |
src/bind/appupdate.pas
(0 / 38)
|   | |||
| 1 | { Copyright (C) 2010 Matthias Klumpp | ||
| 2 | |||
| 3 | Authors: | ||
| 4 | Matthias Klumpp | ||
| 5 | |||
| 6 | This unit is free software: you can redistribute it and/or modify it under | ||
| 7 | the terms of the GNU General Public License as published by the Free Software | ||
| 8 | Foundation, version 3. | ||
| 9 | |||
| 10 | This unit is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| 12 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License v3 | ||
| 15 | along with this unit. If not, see <http://www.gnu.org/licenses/>.} | ||
| 16 | //** This unit contains libInstaller functions to perform software updates | ||
| 17 | unit appupdate; | ||
| 18 | |||
| 19 | {$mode objfpc}{$H+} | ||
| 20 | |||
| 21 | interface | ||
| 22 | |||
| 23 | uses | ||
| 24 | Classes, SysUtils, glib2, liTypes; | ||
| 25 | |||
| 26 | function li_updater_new: GPointer;cdecl;external libinst; | ||
| 27 | procedure li_updater_free(upd: GPointer);cdecl;external libinst; | ||
| 28 | procedure li_updater_set_sumode(upd: GPointer;val: GBoolean);cdecl;external libinst; | ||
| 29 | function li_updater_register_status_call(upd: GPointer;call: TLiStatusChangeCall;user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 30 | function li_updater_register_request_call(upd: GPointer;call: TRequestCall;user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 31 | function li_updater_register_newupdate_call(upd: GPointer;call: TNewUpdateEvent;user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 32 | function li_updater_search_updates(upd: GPointer): GBoolean;cdecl;external libinst; | ||
| 33 | function li_updater_updateid_oldversion(upd: GPointer;uid: GInt32): PGChar;cdecl;external libinst; | ||
| 34 | function li_updater_updateid_newversion(upd: GPointer;uid: GInt32): PGChar;cdecl;external libinst; | ||
| 35 | function li_updater_execute_update(upd: GPointer;uid: GInt32): GBoolean;cdecl;external libinst; | ||
| 36 | |||
| 37 | implementation | ||
| 38 | end. |
src/bind/installer.pas
(0 / 245)
|   | |||
| 1 | { Copyright (C) 2008-2010 Matthias Klumpp | ||
| 2 | |||
| 3 | Authors: | ||
| 4 | Matthias Klumpp | ||
| 5 | |||
| 6 | This unit is free software: you can redistribute it and/or modify it under | ||
| 7 | the terms of the GNU General Public License as published by the Free Software | ||
| 8 | Foundation, version 3. | ||
| 9 | |||
| 10 | This unit is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| 12 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License v3 | ||
| 15 | along with this unit. If not, see <http://www.gnu.org/licenses/>.} | ||
| 16 | //** This unit contains functions to use the installer part of libInstaller | ||
| 17 | unit installer; | ||
| 18 | |||
| 19 | {$MODE objfpc}{$H+} | ||
| 20 | |||
| 21 | interface | ||
| 22 | |||
| 23 | uses | ||
| 24 | Classes, SysUtils, liTypes, GLib2; | ||
| 25 | |||
| 26 | type | ||
| 27 | |||
| 28 | TInstallPack = class | ||
| 29 | private | ||
| 30 | ins: Pointer; | ||
| 31 | ForcedActn: String; | ||
| 32 | procedure SetForced(s: String); | ||
| 33 | public | ||
| 34 | constructor Create; | ||
| 35 | destructor Destroy;override; | ||
| 36 | |||
| 37 | procedure Initialize(pkname: String); | ||
| 38 | procedure SetStatusChangeCall(call: TLiStatusChangeCall;const userdata: Pointer=nil); | ||
| 39 | procedure SetUserRequestCall(call: TRequestCall;const userdata: Pointer=nil); | ||
| 40 | function PkType: TPkgType; | ||
| 41 | procedure SetTestmode(b: Boolean); | ||
| 42 | function GetDisallows: String; | ||
| 43 | function GetSupDistris: String; | ||
| 44 | function GetAppName: String; | ||
| 45 | function GetAppVersion: String; | ||
| 46 | function GetAppID: String; | ||
| 47 | procedure ReadLongDescription(lst: TStringList); | ||
| 48 | function GetWizardImagePath: String; | ||
| 49 | procedure ReadLicense(lst: TStringList); | ||
| 50 | procedure ReadProfiles(lst:TStringList); | ||
| 51 | procedure ReadDeps(lst:TStringList); | ||
| 52 | function GetAppIcon: String; | ||
| 53 | function GetDesktopFiles: String; | ||
| 54 | function GetAppCMD: String; | ||
| 55 | function GetFileList: String; | ||
| 56 | function StartInstallation: Boolean; | ||
| 57 | function GetSignatureState: TPkgSigState; | ||
| 58 | procedure EnableUSource(b: Boolean); | ||
| 59 | procedure SetProfileID(i: Integer); | ||
| 60 | procedure SetRootMode(b: Boolean); | ||
| 61 | property Forced: String read ForcedActn write SetForced; | ||
| 62 | property RemoteObject: GPointer read ins; | ||
| 63 | end; | ||
| 64 | |||
| 65 | function IsIPKAppInstalled(appname: String;appid: String;sumode: Boolean): Boolean; | ||
| 66 | |||
| 67 | //Import library functions | ||
| 68 | function li_setup_new: GPointer; cdecl;external libinst; | ||
| 69 | procedure li_setup_free(setup: GPointer);external libinst; | ||
| 70 | procedure li_setup_set_sumode(setup: GPointer;b: GBoolean);cdecl;external libinst; | ||
| 71 | function li_setup_init(setup: GPointer;pkname: PGChar): PChar;cdecl;external libinst; | ||
| 72 | function li_setup_get_pkgtype(setup: GPointer): TPkgType;cdecl;external libinst; | ||
| 73 | function li_setup_get_disallows(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 74 | function li_setup_get_supported_distributions(setup: GPointer): PGChar; cdecl;external libinst; | ||
| 75 | function li_setup_get_appname(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 76 | function li_setup_get_appversion(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 77 | function li_setup_get_pkgid(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 78 | function li_setup_get_long_description(setup: GPointer; list: GPointer): GBoolean;cdecl;external libinst; | ||
| 79 | function li_setup_get_wizard_image_path(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 80 | function li_setup_get_license(setup: GPointer; list: GPointer): GBoolean;cdecl;external libinst; | ||
| 81 | function li_setup_get_profiles_list(setup: GPointer; list: GPointer): GBoolean;cdecl;external libinst; | ||
| 82 | function li_setup_get_appicon(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 83 | function li_setup_get_desktopfiles(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 84 | function li_setup_get_app_exec_command(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 85 | function li_setup_get_current_profile_filelist(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 86 | procedure li_setup_enable_usource_registering(setup: GPointer;b: GBoolean);cdecl;external libinst; | ||
| 87 | function li_setup_register_status_call(setup: GPointer;call: TLiStatusChangeCall;user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 88 | function li_setup_register_user_request_call(setup: GPointer;call: TRequestCall;user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 89 | function li_setup_execute(setup: GPointer): GBoolean;cdecl;external libinst; | ||
| 90 | procedure li_setup_set_forced(setup: GPointer;str: PGChar);cdecl;external libinst; | ||
| 91 | function li_setup_get_dependencies(setup: GPointer; list: PStringList): GBoolean;cdecl;external libinst; | ||
| 92 | function li_setup_set_profileid(setup: GPointer;id: GInt16): GBoolean;cdecl;external libinst; | ||
| 93 | function li_setup_get_signature_state(setup: GPointer): TPkgSigState;cdecl;external libinst; | ||
| 94 | function li_get_ipk_app_installed(appname: PGChar;appid: PGChar;sumode: GBoolean): GBoolean;cdecl;external libinst; | ||
| 95 | procedure li_set_testmode(st: GBoolean);cdecl;external libinst; | ||
| 96 | procedure li_setup_exec_by_daemon(setup: GPointer;b: Boolean);cdecl;external libinst; | ||
| 97 | |||
| 98 | implementation | ||
| 99 | |||
| 100 | { TInstallPack } | ||
| 101 | |||
| 102 | constructor TInstallPack.Create; | ||
| 103 | begin | ||
| 104 | inherited Create; | ||
| 105 | ins := li_setup_new; | ||
| 106 | end; | ||
| 107 | |||
| 108 | destructor TInstallPack.Destroy; | ||
| 109 | begin | ||
| 110 | li_setup_free(@ins); | ||
| 111 | inherited Destroy; | ||
| 112 | end; | ||
| 113 | |||
| 114 | procedure TInstallPack.Initialize(pkname: String); | ||
| 115 | begin | ||
| 116 | li_setup_init(@ins,PChar(pkname)) | ||
| 117 | end; | ||
| 118 | |||
| 119 | procedure TInstallPack.SetStatusChangeCall(call: TLiStatusChangeCall;const userdata: GPointer=nil); | ||
| 120 | begin | ||
| 121 | li_setup_register_status_call(@ins,call,userdata) | ||
| 122 | end; | ||
| 123 | |||
| 124 | function TInstallPack.PkType: TPkgType; | ||
| 125 | begin | ||
| 126 | Result:=li_setup_get_pkgtype(@ins); | ||
| 127 | end; | ||
| 128 | |||
| 129 | procedure TInstallPack.SetTestmode(b: Boolean); | ||
| 130 | begin | ||
| 131 | li_set_testmode(b); | ||
| 132 | end; | ||
| 133 | |||
| 134 | function TInstallPack.GetDisallows: String; | ||
| 135 | begin | ||
| 136 | Result:=li_setup_get_disallows(@ins); | ||
| 137 | end; | ||
| 138 | |||
| 139 | function TInstallPack.GetSupDistris: String; | ||
| 140 | begin | ||
| 141 | Result:=li_setup_get_supported_distributions(@ins); | ||
| 142 | end; | ||
| 143 | |||
| 144 | function TInstallPack.GetAppName: String; | ||
| 145 | begin | ||
| 146 | Result:=li_setup_get_appname(@ins); | ||
| 147 | end; | ||
| 148 | |||
| 149 | function TInstallPack.GetAppVersion: String; | ||
| 150 | begin | ||
| 151 | Result:=li_setup_get_appversion(@ins); | ||
| 152 | end; | ||
| 153 | |||
| 154 | function TInstallPack.GetAppID: String; | ||
| 155 | begin | ||
| 156 | Result:=li_setup_get_pkgid(@ins); | ||
| 157 | end; | ||
| 158 | |||
| 159 | procedure TInstallPack.ReadLongDescription(lst: TStringList); | ||
| 160 | begin | ||
| 161 | li_setup_get_long_description(@ins,@lst) | ||
| 162 | end; | ||
| 163 | |||
| 164 | function TInstallPack.GetWizardImagePath: String; | ||
| 165 | begin | ||
| 166 | Result:=li_setup_get_wizard_image_path(@ins); | ||
| 167 | end; | ||
| 168 | |||
| 169 | procedure TInstallPack.ReadLicense(lst: TStringList); | ||
| 170 | begin | ||
| 171 | li_setup_get_license(@ins,@lst) | ||
| 172 | end; | ||
| 173 | |||
| 174 | procedure TInstallPack.ReadProfiles(lst: TStringList); | ||
| 175 | begin | ||
| 176 | li_setup_get_profiles_list(@ins,@lst); | ||
| 177 | end; | ||
| 178 | |||
| 179 | function TInstallPack.GetAppIcon: String; | ||
| 180 | begin | ||
| 181 | Result:=li_setup_get_appicon(@ins); | ||
| 182 | end; | ||
| 183 | |||
| 184 | function TInstallPack.GetDesktopFiles: String; | ||
| 185 | begin | ||
| 186 | Result:=li_setup_get_desktopfiles(@ins); | ||
| 187 | end; | ||
| 188 | |||
| 189 | function TInstallPack.GetAppCMD: String; | ||
| 190 | begin | ||
| 191 | Result:=li_setup_get_app_exec_command(@ins); | ||
| 192 | end; | ||
| 193 | |||
| 194 | function TInstallPack.GetFileList: String; | ||
| 195 | begin | ||
| 196 | Result:=li_setup_get_current_profile_filelist(@ins); | ||
| 197 | end; | ||
| 198 | |||
| 199 | procedure TInstallPack.SetUserRequestCall(call: TRequestCall;const userdata: GPointer=nil); | ||
| 200 | begin | ||
| 201 | li_setup_register_user_request_call(@ins,call,userdata) | ||
| 202 | end; | ||
| 203 | |||
| 204 | procedure TInstallPack.ReadDeps(lst: TStringList); | ||
| 205 | begin | ||
| 206 | li_setup_get_dependencies(@ins,@lst); | ||
| 207 | end; | ||
| 208 | |||
| 209 | function TInstallPack.StartInstallation: Boolean; | ||
| 210 | begin | ||
| 211 | Result:=li_setup_execute(@ins); | ||
| 212 | end; | ||
| 213 | |||
| 214 | procedure TInstallPack.SetRootMode(b: Boolean); | ||
| 215 | begin | ||
| 216 | li_setup_set_sumode(@ins,b); | ||
| 217 | end; | ||
| 218 | |||
| 219 | procedure TInstallPack.EnableUSource(b: Boolean); | ||
| 220 | begin | ||
| 221 | li_setup_enable_usource_registering(@ins,b); | ||
| 222 | end; | ||
| 223 | |||
| 224 | procedure TInstallPack.SetProfileID(i: Integer); | ||
| 225 | begin | ||
| 226 | li_setup_set_profileid(@ins,i); | ||
| 227 | end; | ||
| 228 | |||
| 229 | procedure TInstallPack.SetForced(s: String); | ||
| 230 | begin | ||
| 231 | ForcedActn:=s; | ||
| 232 | li_setup_set_forced(@ins,PChar(s)); | ||
| 233 | end; | ||
| 234 | |||
| 235 | function TInstallPack.GetSignatureState: TPkgSigState; | ||
| 236 | begin | ||
| 237 | Result:=li_setup_get_signature_state(@ins); | ||
| 238 | end; | ||
| 239 | |||
| 240 | function IsIPKAppInstalled(appname: String;appid: String;sumode: Boolean): Boolean; | ||
| 241 | begin | ||
| 242 | Result:=li_get_ipk_app_installed(PChar(appname), PChar(appid),sumode); | ||
| 243 | end; | ||
| 244 | |||
| 245 | end. |
src/bind/liappmgr.pas
(40 / 0)
|   | |||
| 1 | { Copyright (C) 2008-2010 Matthias Klumpp | ||
| 2 | |||
| 3 | Authors: | ||
| 4 | Matthias Klumpp | ||
| 5 | |||
| 6 | This unit is free software: you can redistribute it and/or modify it under | ||
| 7 | the terms of the GNU General Public License as published by the Free Software | ||
| 8 | Foundation, version 3. | ||
| 9 | |||
| 10 | This unit is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| 12 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License v3 | ||
| 15 | along with this unit. If not, see <http://www.gnu.org/licenses/>.} | ||
| 16 | //** LibInstaller functions to manage applications | ||
| 17 | unit liappmgr; | ||
| 18 | |||
| 19 | {$mode objfpc}{$H+} | ||
| 20 | |||
| 21 | interface | ||
| 22 | |||
| 23 | uses | ||
| 24 | Classes, SysUtils, glib2, liTypes; | ||
| 25 | |||
| 26 | function li_mgr_new: GPointer;cdecl;external libinst; | ||
| 27 | procedure li_mgr_free(mgr: GPointer);cdecl;external libinst; | ||
| 28 | function li_mgr_load_apps(mgr: GPointer): GBoolean;cdecl;external libinst; | ||
| 29 | function li_mgr_register_status_call(mgr: GPointer;call: TLiStatusChangeCall; user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 30 | function li_mgr_register_request_call(mgr: GPointer;call: TRequestCall;user_data: GPointer): TRqResult;cdecl;external libinst; | ||
| 31 | function li_mgr_register_app_call(mgr: GPointer;call: TAppEvent): GBoolean;cdecl;external libinst; | ||
| 32 | procedure li_mgr_set_sumode(mgr: GPointer;md: GBoolean);cdecl;external libinst; | ||
| 33 | function li_mgr_remove_app(mgr: GPointer;obj: TAppInfo): GBoolean;cdecl;external libinst; | ||
| 34 | function li_remove_ipk_installed_app(appname, appid: PChar;scall: TLiStatusChangeCall;fastmode: GBoolean): GBoolean; cdecl; external libinst; | ||
| 35 | function li_mgr_check_apps(mgr: GPointer;log: PStringList;root: GBoolean): GBoolean;cdecl;external libinst; | ||
| 36 | function li_mgr_fix_apps(mgr: GPointer;log: PStringList;root: GBoolean): GBoolean;cdecl;external libinst; | ||
| 37 | |||
| 38 | implementation | ||
| 39 | |||
| 40 | end. |
src/bind/liappupdate.pas
(38 / 0)
|   | |||
| 1 | { Copyright (C) 2010 Matthias Klumpp | ||
| 2 | |||
| 3 | Authors: | ||
| 4 | Matthias Klumpp | ||
| 5 | |||
| 6 | This unit is free software: you can redistribute it and/or modify it under | ||
| 7 | the terms of the GNU General Public License as published by the Free Software | ||
| 8 | Foundation, version 3. | ||
| 9 | |||
| 10 | This unit is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| 12 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License v3 | ||
| 15 | along with this unit. If not, see <http://www.gnu.org/licenses/>.} | ||
| 16 | //** LibInstaller functions to perform software updates | ||
| 17 | unit liappupdate; | ||
| 18 | |||
| 19 | {$mode objfpc}{$H+} | ||
| 20 | |||
| 21 | interface | ||
| 22 | |||
| 23 | uses | ||
| 24 | Classes, SysUtils, glib2, liTypes; | ||
| 25 | |||
| 26 | function li_updater_new: GPointer;cdecl;external libinst; | ||
| 27 | procedure li_updater_free(upd: GPointer);cdecl;external libinst; | ||
| 28 | procedure li_updater_set_sumode(upd: GPointer;val: GBoolean);cdecl;external libinst; | ||
| 29 | function li_updater_register_status_call(upd: GPointer;call: TLiStatusChangeCall;user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 30 | function li_updater_register_request_call(upd: GPointer;call: TRequestCall;user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 31 | function li_updater_register_newupdate_call(upd: GPointer;call: TNewUpdateEvent;user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 32 | function li_updater_search_updates(upd: GPointer): GBoolean;cdecl;external libinst; | ||
| 33 | function li_updater_updateid_oldversion(upd: GPointer;uid: GInt32): PGChar;cdecl;external libinst; | ||
| 34 | function li_updater_updateid_newversion(upd: GPointer;uid: GInt32): PGChar;cdecl;external libinst; | ||
| 35 | function li_updater_execute_update(upd: GPointer;uid: GInt32): GBoolean;cdecl;external libinst; | ||
| 36 | |||
| 37 | implementation | ||
| 38 | end. |
src/bind/liinstaller.pas
(245 / 0)
|   | |||
| 1 | { Copyright (C) 2008-2010 Matthias Klumpp | ||
| 2 | |||
| 3 | Authors: | ||
| 4 | Matthias Klumpp | ||
| 5 | |||
| 6 | This unit is free software: you can redistribute it and/or modify it under | ||
| 7 | the terms of the GNU General Public License as published by the Free Software | ||
| 8 | Foundation, version 3. | ||
| 9 | |||
| 10 | This unit is distributed in the hope that it will be useful, but WITHOUT | ||
| 11 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
| 12 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License v3 | ||
| 15 | along with this unit. If not, see <http://www.gnu.org/licenses/>.} | ||
| 16 | //** LibInstaller functions to perform software installations | ||
| 17 | unit liinstaller; | ||
| 18 | |||
| 19 | {$MODE objfpc}{$H+} | ||
| 20 | |||
| 21 | interface | ||
| 22 | |||
| 23 | uses | ||
| 24 | Classes, SysUtils, liTypes, GLib2; | ||
| 25 | |||
| 26 | type | ||
| 27 | |||
| 28 | TInstallPack = class | ||
| 29 | private | ||
| 30 | ins: Pointer; | ||
| 31 | ForcedActn: String; | ||
| 32 | procedure SetForced(s: String); | ||
| 33 | public | ||
| 34 | constructor Create; | ||
| 35 | destructor Destroy;override; | ||
| 36 | |||
| 37 | procedure Initialize(pkname: String); | ||
| 38 | procedure SetStatusChangeCall(call: TLiStatusChangeCall;const userdata: Pointer=nil); | ||
| 39 | procedure SetUserRequestCall(call: TRequestCall;const userdata: Pointer=nil); | ||
| 40 | function PkType: TPkgType; | ||
| 41 | procedure SetTestmode(b: Boolean); | ||
| 42 | function GetDisallows: String; | ||
| 43 | function GetSupDistris: String; | ||
| 44 | function GetAppName: String; | ||
| 45 | function GetAppVersion: String; | ||
| 46 | function GetAppID: String; | ||
| 47 | procedure ReadLongDescription(lst: TStringList); | ||
| 48 | function GetWizardImagePath: String; | ||
| 49 | procedure ReadLicense(lst: TStringList); | ||
| 50 | procedure ReadProfiles(lst:TStringList); | ||
| 51 | procedure ReadDeps(lst:TStringList); | ||
| 52 | function GetAppIcon: String; | ||
| 53 | function GetDesktopFiles: String; | ||
| 54 | function GetAppCMD: String; | ||
| 55 | function GetFileList: String; | ||
| 56 | function StartInstallation: Boolean; | ||
| 57 | function GetSignatureState: TPkgSigState; | ||
| 58 | procedure EnableUSource(b: Boolean); | ||
| 59 | procedure SetProfileID(i: Integer); | ||
| 60 | procedure SetRootMode(b: Boolean); | ||
| 61 | property Forced: String read ForcedActn write SetForced; | ||
| 62 | property RemoteObject: GPointer read ins; | ||
| 63 | end; | ||
| 64 | |||
| 65 | function IsIPKAppInstalled(appname: String;appid: String;sumode: Boolean): Boolean; | ||
| 66 | |||
| 67 | //Import library functions | ||
| 68 | function li_setup_new: GPointer; cdecl;external libinst; | ||
| 69 | procedure li_setup_free(setup: GPointer);external libinst; | ||
| 70 | procedure li_setup_set_sumode(setup: GPointer;b: GBoolean);cdecl;external libinst; | ||
| 71 | function li_setup_init(setup: GPointer;pkname: PGChar): PChar;cdecl;external libinst; | ||
| 72 | function li_setup_get_pkgtype(setup: GPointer): TPkgType;cdecl;external libinst; | ||
| 73 | function li_setup_get_disallows(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 74 | function li_setup_get_supported_distributions(setup: GPointer): PGChar; cdecl;external libinst; | ||
| 75 | function li_setup_get_appname(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 76 | function li_setup_get_appversion(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 77 | function li_setup_get_pkgid(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 78 | function li_setup_get_long_description(setup: GPointer; list: GPointer): GBoolean;cdecl;external libinst; | ||
| 79 | function li_setup_get_wizard_image_path(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 80 | function li_setup_get_license(setup: GPointer; list: GPointer): GBoolean;cdecl;external libinst; | ||
| 81 | function li_setup_get_profiles_list(setup: GPointer; list: GPointer): GBoolean;cdecl;external libinst; | ||
| 82 | function li_setup_get_appicon(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 83 | function li_setup_get_desktopfiles(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 84 | function li_setup_get_app_exec_command(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 85 | function li_setup_get_current_profile_filelist(setup: GPointer): PGChar;cdecl;external libinst; | ||
| 86 | procedure li_setup_enable_usource_registering(setup: GPointer;b: GBoolean);cdecl;external libinst; | ||
| 87 | function li_setup_register_status_call(setup: GPointer;call: TLiStatusChangeCall;user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 88 | function li_setup_register_user_request_call(setup: GPointer;call: TRequestCall;user_data: GPointer): GBoolean;cdecl;external libinst; | ||
| 89 | function li_setup_execute(setup: GPointer): GBoolean;cdecl;external libinst; | ||
| 90 | procedure li_setup_set_forced(setup: GPointer;str: PGChar);cdecl;external libinst; | ||
| 91 | function li_setup_get_dependencies(setup: GPointer; list: PStringList): GBoolean;cdecl;external libinst; | ||
| 92 | function li_setup_set_profileid(setup: GPointer;id: GInt16): GBoolean;cdecl;external libinst; | ||
| 93 | function li_setup_get_signature_state(setup: GPointer): TPkgSigState;cdecl;external libinst; | ||
| 94 | function li_get_ipk_app_installed(appname: PGChar;appid: PGChar;sumode: GBoolean): GBoolean;cdecl;external libinst; | ||
| 95 | procedure li_set_testmode(st: GBoolean);cdecl;external libinst; | ||
| 96 | procedure li_setup_exec_by_daemon(setup: GPointer;b: Boolean);cdecl;external libinst; | ||
| 97 | |||
| 98 | implementation | ||
| 99 | |||
| 100 | { TInstallPack } | ||
| 101 | |||
| 102 | constructor TInstallPack.Create; | ||
| 103 | begin | ||
| 104 | inherited Create; | ||
| 105 | ins := li_setup_new; | ||
| 106 | end; | ||
| 107 | |||
| 108 | destructor TInstallPack.Destroy; | ||
| 109 | begin | ||
| 110 | li_setup_free(@ins); | ||
| 111 | inherited Destroy; | ||
| 112 | end; | ||
| 113 | |||
| 114 | procedure TInstallPack.Initialize(pkname: String); | ||
| 115 | begin | ||
| 116 | li_setup_init(@ins,PChar(pkname)) | ||
| 117 | end; | ||
| 118 | |||
| 119 | procedure TInstallPack.SetStatusChangeCall(call: TLiStatusChangeCall;const userdata: GPointer=nil); | ||
| 120 | begin | ||
| 121 | li_setup_register_status_call(@ins,call,userdata) | ||
| 122 | end; | ||
| 123 | |||
| 124 | function TInstallPack.PkType: TPkgType; | ||
| 125 | begin | ||
| 126 | Result:=li_setup_get_pkgtype(@ins); | ||
| 127 | end; | ||
| 128 | |||
| 129 | procedure TInstallPack.SetTestmode(b: Boolean); | ||
| 130 | begin | ||
| 131 | li_set_testmode(b); | ||
| 132 | end; | ||
| 133 | |||
| 134 | function TInstallPack.GetDisallows: String; | ||
| 135 | begin | ||
| 136 | Result:=li_setup_get_disallows(@ins); | ||
| 137 | end; | ||
| 138 | |||
| 139 | function TInstallPack.GetSupDistris: String; | ||
| 140 | begin | ||
| 141 | Result:=li_setup_get_supported_distributions(@ins); | ||
| 142 | end; | ||
| 143 | |||
| 144 | function TInstallPack.GetAppName: String; | ||
| 145 | begin | ||
| 146 | Result:=li_setup_get_appname(@ins); | ||
| 147 | end; | ||
| 148 | |||
| 149 | function TInstallPack.GetAppVersion: String; | ||
| 150 | begin | ||
| 151 | Result:=li_setup_get_appversion(@ins); | ||
| 152 | end; | ||
| 153 | |||
| 154 | function TInstallPack.GetAppID: String; | ||
| 155 | begin | ||
| 156 | Result:=li_setup_get_pkgid(@ins); | ||
| 157 | end; | ||
| 158 | |||
| 159 | procedure TInstallPack.ReadLongDescription(lst: TStringList); | ||
| 160 | begin | ||
| 161 | li_setup_get_long_description(@ins,@lst) | ||
| 162 | end; | ||
| 163 | |||
| 164 | function TInstallPack.GetWizardImagePath: String; | ||
| 165 | begin | ||
| 166 | Result:=li_setup_get_wizard_image_path(@ins); | ||
| 167 | end; | ||
| 168 | |||
| 169 | procedure TInstallPack.ReadLicense(lst: TStringList); | ||
| 170 | begin | ||
| 171 | li_setup_get_license(@ins,@lst) | ||
| 172 | end; | ||
| 173 | |||
| 174 | procedure TInstallPack.ReadProfiles(lst: TStringList); | ||
| 175 | begin | ||
| 176 | li_setup_get_profiles_list(@ins,@lst); | ||
| 177 | end; | ||
| 178 | |||
| 179 | function TInstallPack.GetAppIcon: String; | ||
| 180 | begin | ||
| 181 | Result:=li_setup_get_appicon(@ins); | ||
| 182 | end; | ||
| 183 | |||
| 184 | function TInstallPack.GetDesktopFiles: String; | ||
| 185 | begin | ||
| 186 | Result:=li_setup_get_desktopfiles(@ins); | ||
| 187 | end; | ||
| 188 | |||
| 189 | function TInstallPack.GetAppCMD: String; | ||
| 190 | begin | ||
| 191 | Result:=li_setup_get_app_exec_command(@ins); | ||
| 192 | end; | ||
| 193 | |||
| 194 | function TInstallPack.GetFileList: String; | ||
| 195 | begin | ||
| 196 | Result:=li_setup_get_current_profile_filelist(@ins); | ||
| 197 | end; | ||
| 198 | |||
| 199 | procedure TInstallPack.SetUserRequestCall(call: TRequestCall;const userdata: GPointer=nil); | ||
| 200 | begin | ||
| 201 | li_setup_register_user_request_call(@ins,call,userdata) | ||
| 202 | end; | ||
| 203 | |||
| 204 | procedure TInstallPack.ReadDeps(lst: TStringList); | ||
| 205 | begin | ||
| 206 | li_setup_get_dependencies(@ins,@lst); | ||
| 207 | end; | ||
| 208 | |||
| 209 | function TInstallPack.StartInstallation: Boolean; | ||
| 210 | begin | ||
| 211 | Result:=li_setup_execute(@ins); | ||
| 212 | end; | ||
| 213 | |||
| 214 | procedure TInstallPack.SetRootMode(b: Boolean); | ||
| 215 | begin | ||
| 216 | li_setup_set_sumode(@ins,b); | ||
| 217 | end; | ||
| 218 | |||
| 219 | procedure TInstallPack.EnableUSource(b: Boolean); | ||
| 220 | begin | ||
| 221 | li_setup_enable_usource_registering(@ins,b); | ||
| 222 | end; | ||
| 223 | |||
| 224 | procedure TInstallPack.SetProfileID(i: Integer); | ||
| 225 | begin | ||
| 226 | li_setup_set_profileid(@ins,i); | ||
| 227 | end; | ||
| 228 | |||
| 229 | procedure TInstallPack.SetForced(s: String); | ||
| 230 | begin | ||
| 231 | ForcedActn:=s; | ||
| 232 | li_setup_set_forced(@ins,PChar(s)); | ||
| 233 | end; | ||
| 234 | |||
| 235 | function TInstallPack.GetSignatureState: TPkgSigState; | ||
| 236 | begin | ||
| 237 | Result:=li_setup_get_signature_state(@ins); | ||
| 238 | end; | ||
| 239 | |||
| 240 | function IsIPKAppInstalled(appname: String;appid: String;sumode: Boolean): Boolean; | ||
| 241 | begin | ||
| 242 | Result:=li_get_ipk_app_installed(PChar(appname), PChar(appid),sumode); | ||
| 243 | end; | ||
| 244 | |||
| 245 | end. |
src/cmdtools/lipa.lpr
(4 / 4)
|   | |||
| 24 | 24 | {$ENDIF} | |
| 25 | 25 | Interfaces, //We use NoGUI widgetset | |
| 26 | 26 | Classes, SysUtils, CustApp, | |
| 27 | Process, liUtils, Installer, | ||
| 28 | strLocale, IniFiles, Distri, | ||
| 29 | LiTranslator, ipkdef, gExt, | ||
| 30 | appman, liTypes, Forms; | ||
| 27 | Process, liUtils, LiInstaller, | ||
| 28 | StrLocale, IniFiles, Distri, | ||
| 29 | LiTranslator, IPKdef, GExt, | ||
| 30 | LiAppMgr, liTypes, Forms; | ||
| 31 | 31 | ||
| 32 | 32 | type | |
| 33 | 33 |
src/daemon/djobs.pas
(2 / 2)
|   | |||
| 27 | 27 | interface | |
| 28 | 28 | ||
| 29 | 29 | uses | |
| 30 | Classes, SysUtils, dbus, PolKit, glib2, gExt, Installer, AppMan, | ||
| 31 | liUtils, liTypes, SimDBus, Contnrs, AppUpdate, SyncObjs; | ||
| 30 | Classes, SysUtils, DBus, PolKit, GLib2, gExt, LiInstaller, LiAppMgr, | ||
| 31 | LiUtils, LiTypes, SimDBus, Contnrs, LiAppUpdate, SyncObjs; | ||
| 32 | 32 | ||
| 33 | 33 | type | |
| 34 | 34 | TAccessType = (AC_UNKNOWN, AC_AUTHORIZED, AC_NOT_AUTHORIZED); |
src/daemon/listallerd.lpr
(2 / 2)
|   | |||
| 19 | 19 | {$mode objfpc}{$H+} | |
| 20 | 20 | ||
| 21 | 21 | uses | |
| 22 | cthreads, Interfaces, Classes, SysUtils, CustApp, dbus, djobs, | ||
| 23 | Contnrs, SimDBus, liUtils, LCLIntf, SyncObjs, gExt; | ||
| 22 | cthreads, Interfaces, Classes, SysUtils, CustApp, dbus, DJobs, | ||
| 23 | Contnrs, SimDBus, LiUtils, LCLIntf, SyncObjs, GExt; | ||
| 24 | 24 | ||
| 25 | 25 | type | |
| 26 | 26 |
src/frontends/dgfrm.lfm
(12 / 12)
|   | |||
| 99 | 99 | TabOrder = 0 | |
| 100 | 100 | object TabSheet1: TTabSheet | |
| 101 | 101 | Caption = 'Main' | |
| 102 | ClientHeight = 214 | ||
| 103 | ClientWidth = 622 | ||
| 102 | ClientHeight = 210 | ||
| 103 | ClientWidth = 620 | ||
| 104 | 104 | object Memo1: TMemo | |
| 105 | 105 | Left = 0 | |
| 106 | Height = 214 | ||
| 106 | Height = 210 | ||
| 107 | 107 | Top = 0 | |
| 108 | Width = 622 | ||
| 108 | Width = 620 | ||
| 109 | 109 | Align = alClient | |
| 110 | 110 | Lines.Strings = ( | |
| 111 | 111 | '<no description given>' | |
| … | … | ||
| 115 | 115 | end | |
| 116 | 116 | object TabSheet2: TTabSheet | |
| 117 | 117 | Caption = 'Details' | |
| 118 | ClientHeight = 214 | ||
| 119 | ClientWidth = 622 | ||
| 118 | ClientHeight = 210 | ||
| 119 | ClientWidth = 620 | ||
| 120 | 120 | object Memo2: TMemo | |
| 121 | 121 | Left = 0 | |
| 122 | 122 | Height = 214 | |
| … | … | ||
| 132 | 132 | end | |
| 133 | 133 | object TabSheet3: TTabSheet | |
| 134 | 134 | Caption = 'Installation' | |
| 135 | ClientHeight = 214 | ||
| 136 | ClientWidth = 622 | ||
| 135 | ClientHeight = 210 | ||
| 136 | ClientWidth = 620 | ||
| 137 | 137 | object Memo3: TMemo | |
| 138 | 138 | Left = 6 | |
| 139 | 139 | Height = 137 | |
| … | … | ||
| 180 | 180 | TabOrder = 1 | |
| 181 | 181 | end | |
| 182 | 182 | object FinBtn1: TBitBtn | |
| 183 | Left = 583 | ||
| 184 | Height = 22 | ||
| 185 | Top = 296 | ||
| 186 | Width = 43 | ||
| 183 | Left = 585 | ||
| 184 | Height = 24 | ||
| 185 | Top = 294 | ||
| 186 | Width = 41 | ||
| 187 | 187 | Anchors = [akRight, akBottom] | |
| 188 | 188 | AutoSize = True | |
| 189 | 189 | Caption = 'Finish' |
src/frontends/dgfrm.pas
(2 / 2)
|   | |||
| 23 | 23 | ||
| 24 | 24 | uses | |
| 25 | 25 | Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls, | |
| 26 | Buttons, ComCtrls, LCLType, LCLIntf, igobase, ExtCtrls, process, liUtils, | ||
| 27 | strLocale, IconLoader; | ||
| 26 | Buttons, ComCtrls, LCLType, LCLIntf, IGoBase, ExtCtrls, Process, LiUtils, | ||
| 27 | StrLocale, IconLoader; | ||
| 28 | 28 | ||
| 29 | 29 | type | |
| 30 | 30 |
src/frontends/igobase.lfm
(30 / 30)
|   | |||
| 60 | 60 | TabOrder = 0 | |
| 61 | 61 | object WPage: TPage | |
| 62 | 62 | Caption = 'Welcome' | |
| 63 | ClientWidth = 647 | ||
| 64 | ClientHeight = 353 | ||
| 63 | ClientWidth = 645 | ||
| 64 | ClientHeight = 349 | ||
| 65 | 65 | object LeftImg: TImage | |
| 66 | 66 | Left = 0 | |
| 67 | Height = 353 | ||
| 67 | Height = 349 | ||
| 68 | 68 | Top = 0 | |
| 69 | 69 | Width = 146 | |
| 70 | 70 | Align = alLeft | |
| … | … | ||
| 134 | 134 | end | |
| 135 | 135 | object DPage: TPage | |
| 136 | 136 | Caption = 'Description' | |
| 137 | ClientWidth = 647 | ||
| 138 | ClientHeight = 353 | ||
| 137 | ClientWidth = 645 | ||
| 138 | ClientHeight = 349 | ||
| 139 | 139 | object Label4: TLabel | |
| 140 | 140 | Left = 12 | |
| 141 | 141 | Height = 24 | |
| … | … | ||
| 162 | 162 | end | |
| 163 | 163 | object LPage: TPage | |
| 164 | 164 | Caption = 'License' | |
| 165 | ClientWidth = 647 | ||
| 166 | ClientHeight = 353 | ||
| 165 | ClientWidth = 645 | ||
| 166 | ClientHeight = 349 | ||
| 167 | 167 | object Label5: TLabel | |
| 168 | 168 | Left = 12 | |
| 169 | 169 | Height = 24 | |
| … | … | ||
| 221 | 221 | end | |
| 222 | 222 | object IMPage: TPage | |
| 223 | 223 | Caption = 'Mode' | |
| 224 | ClientWidth = 647 | ||
| 225 | ClientHeight = 353 | ||
| 224 | ClientWidth = 645 | ||
| 225 | ClientHeight = 349 | ||
| 226 | 226 | object Label13: TLabel | |
| 227 | 227 | Left = 12 | |
| 228 | 228 | Height = 24 | |
| … | … | ||
| 265 | 265 | end | |
| 266 | 266 | object IPage: TPage | |
| 267 | 267 | Caption = 'Install' | |
| 268 | ClientWidth = 647 | ||
| 269 | ClientHeight = 353 | ||
| 268 | ClientWidth = 645 | ||
| 269 | ClientHeight = 349 | ||
| 270 | 270 | object Label6: TLabel | |
| 271 | 271 | Left = 4 | |
| 272 | 272 | Height = 27 | |
| … | … | ||
| 337 | 337 | end | |
| 338 | 338 | object FinPage: TPage | |
| 339 | 339 | Caption = 'Finish' | |
| 340 | ClientWidth = 647 | ||
| 341 | ClientHeight = 353 | ||
| 340 | ClientWidth = 645 | ||
| 341 | ClientHeight = 349 | ||
| 342 | 342 | object Label10: TLabel | |
| 343 | 343 | Left = 6 | |
| 344 | 344 | Height = 27 | |
| … | … | ||
| 388 | 388 | end | |
| 389 | 389 | object FailPage: TPage | |
| 390 | 390 | Caption = 'Failed' | |
| 391 | ClientWidth = 647 | ||
| 392 | ClientHeight = 353 | ||
| 391 | ClientWidth = 645 | ||
| 392 | ClientHeight = 349 | ||
| 393 | 393 | object Label15: TLabel | |
| 394 | 394 | Left = 6 | |
| 395 | 395 | Height = 27 | |
| … | … | ||
| 421 | 421 | ClientWidth = 651 | |
| 422 | 422 | TabOrder = 1 | |
| 423 | 423 | object FinBtn1: TBitBtn | |
| 424 | Left = 601 | ||
| 425 | Height = 22 | ||
| 426 | Top = 17 | ||
| 427 | Width = 43 | ||
| 424 | Left = 603 | ||
| 425 | Height = 24 | ||
| 426 | Top = 15 | ||
| 427 | Width = 41 | ||
| 428 | 428 | Anchors = [akRight, akBottom] | |
| 429 | 429 | AutoSize = True | |
| 430 | 430 | Caption = 'Finish' | |
| … | … | ||
| 434 | 434 | Visible = False | |
| 435 | 435 | end | |
| 436 | 436 | object AbortBtn1: TBitBtn | |
| 437 | Left = 304 | ||
| 438 | Height = 22 | ||
| 439 | Top = 16 | ||
| 440 | Width = 44 | ||
| 437 | Left = 305 | ||
| 438 | Height = 24 | ||
| 439 | Top = 14 | ||
| 440 | Width = 42 | ||
| 441 | 441 | Anchors = [akBottom] | |
| 442 | 442 | AutoSize = True | |
| 443 | 443 | Caption = 'Abort' | |
| … | … | ||
| 447 | 447 | end | |
| 448 | 448 | object Button5: TBitBtn | |
| 449 | 449 | Left = 8 | |
| 450 | Height = 22 | ||
| 451 | Top = 16 | ||
| 452 | Width = 40 | ||
| 450 | Height = 24 | ||
| 451 | Top = 14 | ||
| 452 | Width = 38 | ||
| 453 | 453 | Anchors = [akLeft, akBottom] | |
| 454 | 454 | AutoSize = True | |
| 455 | 455 | Caption = 'Back' | |
| … | … | ||
| 459 | 459 | Visible = False | |
| 460 | 460 | end | |
| 461 | 461 | object Button1: TBitBtn | |
| 462 | Left = 602 | ||
| 463 | Height = 22 | ||
| 464 | Top = 17 | ||
| 465 | Width = 41 | ||
| 462 | Left = 604 | ||
| 463 | Height = 24 | ||
| 464 | Top = 15 | ||
| 465 | Width = 39 | ||
| 466 | 466 | Anchors = [akRight, akBottom] | |
| 467 | 467 | AutoSize = True | |
| 468 | 468 | Caption = 'Next' |
src/frontends/igobase.pas
(1 / 1)
|   | |||
| 23 | 23 | uses | |
| 24 | 24 | Forms, distri, Buttons, Classes, Dialogs, | |
| 25 | 25 | LCLIntf, LCLType, liTypes, liUtils, Process, xTypeFm, ComCtrls, Controls, ExtCtrls, | |
| 26 | FileUtil, Graphics, StdCtrls, SysUtils, Installer, strLocale, IconLoader, LResources; | ||
| 26 | FileUtil, Graphics, StdCtrls, SysUtils, LiInstaller, StrLocale, IconLoader, LResources; | ||
| 27 | 27 | ||
| 28 | 28 | type | |
| 29 | 29 |
src/frontends/linotify.pas
(1 / 1)
|   | |||
| 22 | 22 | ||
| 23 | 23 | uses | |
| 24 | 24 | Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, | |
| 25 | ExtCtrls, Menus, LiUtils, Process, strLocale, AppMan, LCLType, LiTranslator; | ||
| 25 | ExtCtrls, Menus, LiUtils, Process, StrLocale, LiAppMgr, LCLType, LiTranslator; | ||
| 26 | 26 | ||
| 27 | 27 | type | |
| 28 | 28 |
src/frontends/listallgo.lpr
(10 / 10)
|   | |||
| 19 | 19 | {$mode objfpc}{$H+} | |
| 20 | 20 | ||
| 21 | 21 | uses {$IFDEF UNIX} | |
| 22 | cthreads, {$ENDIF} | ||
| 22 | CThreads, {$ENDIF} | ||
| 23 | 23 | Interfaces, // this includes the LCL widgetset | |
| 24 | gExt, | ||
| 24 | GExt, | ||
| 25 | 25 | Forms, | |
| 26 | igobase, | ||
| 27 | dgfrm, | ||
| 28 | strLocale, | ||
| 26 | IGoBase, | ||
| 27 | DGFrm, | ||
| 28 | StrLocale, | ||
| 29 | 29 | SysUtils, | |
| 30 | liUtils, | ||
| 31 | liTranslator, | ||
| 32 | liTypes, | ||
| 33 | xtypefm, | ||
| 34 | Installer, | ||
| 30 | LiUtils, | ||
| 31 | LiTranslator, | ||
| 32 | LiTypes, | ||
| 33 | XTypeFm, | ||
| 34 | LiInstaller, | ||
| 35 | 35 | LCLType, | |
| 36 | 36 | Dialogs; | |
| 37 | 37 |
src/frontends/manager.pas
(2 / 2)
|   | |||
| 21 | 21 | interface | |
| 22 | 22 | ||
| 23 | 23 | uses | |
| 24 | Spin, Forms, Menus, AppMan, Distri, AppItem, AppList, GLib2, | ||
| 24 | Spin, Forms, Menus, LiAppMgr, Distri, AppItem, AppList, GLib2, | ||
| 25 | 25 | Buttons, Classes, Dialogs, LCLType, liTypes, liUtils, Process, AboutBox, | |
| 26 | 26 | CheckLst, ComCtrls, Controls, ExtCtrls, FileUtil, Graphics, Inifiles, StdCtrls, | |
| 27 | SysUtils, strLocale, Uninstall, IconLoader, LResources, PackageKit, PkTypes; | ||
| 27 | SysUtils, StrLocale, Uninstall, IconLoader, LResources, PackageKit, PkTypes; | ||
| 28 | 28 | ||
| 29 | 29 | type | |
| 30 | 30 |
|   | |||
| 22 | 22 | ||
| 23 | 23 | uses | |
| 24 | 24 | Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls, | |
| 25 | Process, ExtCtrls, LiUtils, LCLType, Manager, strLocale, AppMan; | ||
| 25 | Process, ExtCtrls, LiUtils, LCLType, Manager, strLocale, LiAppMgr; | ||
| 26 | 26 | ||
| 27 | 27 | type | |
| 28 | 28 |
|   | |||
| 38 | 38 | ParentColor = False | |
| 39 | 39 | end | |
| 40 | 40 | object Button1: TButton | |
| 41 | Left = 112 | ||
| 41 | Left = 113 | ||
| 42 | 42 | Height = 28 | |
| 43 | 43 | Top = 126 | |
| 44 | Width = 83 | ||
| 44 | Width = 81 | ||
| 45 | 45 | Anchors = [akBottom] | |
| 46 | 46 | AutoSize = True | |
| 47 | 47 | Caption = 'I know the risk' |
|   | |||
| 21 | 21 | interface | |
| 22 | 22 | ||
| 23 | 23 | uses | |
| 24 | Forms, Classes, Dialogs, Controls, FileUtil, Graphics, StdCtrls, SysUtils, strLocale, LResources; | ||
| 24 | Forms, Classes, Dialogs, Controls, FileUtil, Graphics, StdCtrls, SysUtils, StrLocale, LResources; | ||
| 25 | 25 | ||
| 26 | 26 | type | |
| 27 | 27 |
src/frontends/uninstall.lfm
(3 / 3)
|   | |||
| 91 | 91 | TabOrder = 1 | |
| 92 | 92 | end | |
| 93 | 93 | object BitBtn1: TBitBtn | |
| 94 | Left = 420 | ||
| 94 | Left = 422 | ||
| 95 | 95 | Height = 30 | |
| 96 | 96 | Top = 231 | |
| 97 | Width = 44 | ||
| 97 | Width = 42 | ||
| 98 | 98 | Anchors = [akRight, akBottom] | |
| 99 | 99 | AutoSize = True | |
| 100 | 100 | Caption = 'Close' | |
| … | … | ||
| 107 | 107 | Left = 8 | |
| 108 | 108 | Height = 26 | |
| 109 | 109 | Top = 72 | |
| 110 | Width = 69 | ||
| 110 | Width = 67 | ||
| 111 | 111 | AutoSize = True | |
| 112 | 112 | Caption = 'Details >>' | |
| 113 | 113 | Constraints.MaxHeight = 26 |
src/frontends/uninstall.pas
(2 / 2)
|   | |||
| 20 | 20 | interface | |
| 21 | 21 | ||
| 22 | 22 | uses | |
| 23 | Forms, AppMan, Buttons, Classes, Dialogs, LCLType, LiUtils, liTypes, Process, ComCtrls, | ||
| 24 | Controls, ExtCtrls, FileUtil, Graphics, StdCtrls, SysUtils, strLocale, LResources; | ||
| 23 | Forms, LiAppMgr, Buttons, Classes, Dialogs, LCLType, LiUtils, liTypes, Process, ComCtrls, | ||
| 24 | Controls, ExtCtrls, FileUtil, Graphics, StdCtrls, SysUtils, StrLocale, LResources; | ||
| 25 | 25 | ||
| 26 | 26 | type | |
| 27 | 27 |
src/frontends/updatefrm.lfm
(9 / 9)
|   | |||
| 24 | 24 | TabOrder = 0 | |
| 25 | 25 | end | |
| 26 | 26 | object BitBtn1: TBitBtn | |
| 27 | Left = 510 | ||
| 28 | Height = 22 | ||
| 29 | Top = 448 | ||
| 30 | Width = 87 | ||
| 27 | Left = 512 | ||
| 28 | Height = 24 | ||
| 29 | Top = 446 | ||
| 30 | Width = 85 | ||
| 31 | 31 | Anchors = [akRight, akBottom] | |
| 32 | 32 | AutoSize = True | |
| 33 | 33 | Caption = 'Install updates' | |
| … | … | ||
| 49 | 49 | end | |
| 50 | 50 | object BitBtn2: TBitBtn | |
| 51 | 51 | Left = 8 | |
| 52 | Height = 22 | ||
| 53 | Top = 448 | ||
| 54 | Width = 106 | ||
| 52 | Height = 24 | ||
| 53 | Top = 446 | ||
| 54 | Width = 104 | ||
| 55 | 55 | Anchors = [akLeft, akBottom] | |
| 56 | 56 | AutoSize = True | |
| 57 | 57 | Caption = 'Check for updates' | |
| … | … | ||
| 61 | 61 | end | |
| 62 | 62 | object StatusBar1: TStatusBar | |
| 63 | 63 | Left = 0 | |
| 64 | Height = 16 | ||
| 65 | Top = 578 | ||
| 64 | Height = 20 | ||
| 65 | Top = 574 | ||
| 66 | 66 | Width = 608 | |
| 67 | 67 | Panels = < | |
| 68 | 68 | item |
src/frontends/updatefrm.pas
(4 / 4)
|   | |||
| 23 | 23 | uses | |
| 24 | 24 | Forms, Menus, Buttons, Classes, Dialogs, LCLType, liTypes, | |
| 25 | 25 | LiUtils, Process, CheckLst, ComCtrls, Controls, ExtCtrls, | |
| 26 | Graphics, StdCtrls, SysUtils, AppUpdate, strLocale, IconLoader, | ||
| 27 | LResources, updexecfrm; | ||
| 26 | Graphics, StdCtrls, SysUtils, StrLocale, IconLoader, | ||
| 27 | LResources, updexecfrm, LiAppUpdate; | ||
| 28 | 28 | ||
| 29 | 29 | type | |
| 30 | 30 | ||
| … | … | ||
| 104 | 104 | rqWarning: | |
| 105 | 105 | begin | |
| 106 | 106 | if Application.MessageBox(PAnsiChar(msg), PChar(rsWarning), | |
| 107 | MB_YESNO + MB_IconWarning) <> idYes then | ||
| 107 | MB_YESNO + MB_IconWarning) <> idYes then | ||
| 108 | 108 | begin | |
| 109 | 109 | ShowMessage(rsINClose); | |
| 110 | 110 | Result := rqsNo; | |
| … | … | ||
| 115 | 115 | rqQuestion: | |
| 116 | 116 | begin | |
| 117 | 117 | if Application.MessageBox(PAnsiChar(msg), PChar(rsQuestion), | |
| 118 | MB_YESNO + MB_IconQuestion) <> idYes then | ||
| 118 | MB_YESNO + MB_IconQuestion) <> idYes then | ||
| 119 | 119 | Result := rqsNo | |
| 120 | 120 | else | |
| 121 | 121 | Result := rqsYes; |
src/frontends/updexecfrm.pas
(2 / 4)
|   | |||
| 21 | 21 | interface | |
| 22 | 22 | ||
| 23 | 23 | uses | |
| 24 | AppUpdate, | ||
| 25 | Classes, ComCtrls, Controls, Dialogs, FileUtil, Forms, Graphics, | ||
| 26 | LiUtils, liTypes, LResources, Process, StdCtrls, | ||
| 27 | SysUtils, strLocale; | ||
| 24 | LiAppUpdate, Classes, ComCtrls, Controls, Dialogs, FileUtil, Forms, Graphics, | ||
| 25 | LiUtils, LiTypes, LResources, Process, StdCtrls, SysUtils, StrLocale; | ||
| 28 | 26 | ||
| 29 | 27 | type | |
| 30 | 28 |
src/install-dev
(10 / 2)
|   | |||
| 21 | 21 | ||
| 22 | 22 | echo "Installing development files..." | |
| 23 | 23 | mkdir -p $DESTDIR$prefix/include/Listaller | |
| 24 | mkdir -p $DESTDIR$prefix/share/pascal/listaller | ||
| 24 | 25 | mkdir -p $DESTDIR$libdir/pkgconfig/ | |
| 25 | 26 | ||
| 26 | 27 | #Copy C headers | |
| 27 | 28 | cp ../lib/cbind/*.h $DESTDIR$prefix/include/Listaller/ | |
| 28 | sed "s#%PREFIX%#$prefix#" ../lib/cbind/libinstaller.pc.in > ../lib/cbind/libinstaller.pc | ||
| 29 | 29 | cp ../lib/cbind/*.pc $DESTDIR$libdir/pkgconfig/ | |
| 30 | #Link library | ||
| 31 | CUR=$(pwd) | ||
| 30 | 32 | cd $DESTDIR$libdir | |
| 31 | 33 | if [ ! -f libinstaller.so ]; then | |
| 32 | 34 | ln -s $libdir/libinstaller.so.0.4 libinstaller.so | |
| 33 | 35 | fi | |
| 36 | cd $CUR | ||
| 37 | #Copy Pascal units | ||
| 38 | cp ./bind/liappmgr.pas $DESTDIR$prefix/share/pascal/listaller | ||
| 39 | cp ./bind/liappupdate.pas $DESTDIR$prefix/share/pascal/listaller | ||
| 40 | cp ./bind/liinstaller.pas $DESTDIR$prefix/share/pascal/listaller | ||
| 41 | cp ./litypes.pas $DESTDIR$prefix/share/pascal/listaller | ||
| 34 | 42 | ||
| 35 | echo "Devfiles installed." | ||
| 43 | echo "Finished installation of development files." |
src/make-base
(2 / 1)
|   | |||
| 33 | 33 | ||
| 34 | 34 | #Initialize build dirs | |
| 35 | 35 | # Create necessary dirs | |
| 36 | mkdir -p ../build | ||
| 37 | 36 | mkdir -p ../build/locale | |
| 38 | 37 | mkdir -p ../build/lib_$ARCH-$OS | |
| 39 | 38 | mkdir -p ../build/$ARCH-$OS | |
| … | … | ||
| 50 | 50 | ln -s libinstaller.so.0.4 libinstaller.so | |
| 51 | 51 | cd ../src | |
| 52 | 52 | fi | |
| 53 | #Write PC file | ||
| 54 | sed "s#%PREFIX%#$prefix#" ../lib/cbind/libinstaller.pc.in > ../lib/cbind/libinstaller.pc | ||
| 53 | 55 | ||
| 54 | 56 | echo "Compiling Listaller daemon..." | |
| 55 | 57 | lazbuild -B --ws=nogui ./daemon/listallerd.lpr |

