aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-03-03 12:21:31 +0000
committerDaniel Brahneborg <basic@chello.se>2002-03-03 12:21:31 +0000
commitd92c2abcca7d9270f49cbfb09a27bfda86642c31 (patch)
treec9c0ba02f077f2413e6023a9d3e13a5f256d186b /lib
parent9df8909948bb491b1b8c53ff8e1b5ce125304aac (diff)
downloadplptools-d92c2abcca7d9270f49cbfb09a27bfda86642c31.tar.gz
plptools-d92c2abcca7d9270f49cbfb09a27bfda86642c31.tar.bz2
plptools-d92c2abcca7d9270f49cbfb09a27bfda86642c31.zip
Added GNU copyright header.
Diffstat (limited to 'lib')
-rw-r--r--lib/siscomponentrecord.cpp21
-rw-r--r--lib/siscomponentrecord.h27
-rw-r--r--lib/sisfile.cpp21
-rw-r--r--lib/sisfile.h27
-rw-r--r--lib/sisfileheader.cpp21
-rw-r--r--lib/sisfileheader.h22
-rw-r--r--lib/sisfilerecord.cpp21
-rw-r--r--lib/sisfilerecord.h46
-rw-r--r--lib/sislangrecord.cpp21
-rw-r--r--lib/sislangrecord.h22
-rw-r--r--lib/sisreqrecord.cpp21
-rw-r--r--lib/sisreqrecord.h22
-rw-r--r--lib/sistypes.cpp21
-rw-r--r--lib/sistypes.h22
14 files changed, 321 insertions, 14 deletions
diff --git a/lib/siscomponentrecord.cpp b/lib/siscomponentrecord.cpp
index ff3153f..7ec468d 100644
--- a/lib/siscomponentrecord.cpp
+++ b/lib/siscomponentrecord.cpp
@@ -1,3 +1,24 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
#include "siscomponentrecord.h"
#include "sisfile.h"
diff --git a/lib/siscomponentrecord.h b/lib/siscomponentrecord.h
index 995750d..4b03793 100644
--- a/lib/siscomponentrecord.h
+++ b/lib/siscomponentrecord.h
@@ -1,3 +1,25 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#ifndef _SISCOMPONENTRECORD_H
#define _SISCOMPONENTRECORD_H
@@ -20,6 +42,11 @@ public:
*/
void fillFrom(uchar* buf, int base, SISFile* sisFile);
+ /**
+ * Return the name for the given language.
+ * The number is the sequence number in the list of language records
+ * in the sis file.
+ */
uchar* getName(int no);
private:
diff --git a/lib/sisfile.cpp b/lib/sisfile.cpp
index 9435f52..05551b9 100644
--- a/lib/sisfile.cpp
+++ b/lib/sisfile.cpp
@@ -1,3 +1,24 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
#include "sisfile.h"
#include "sislangrecord.h"
diff --git a/lib/sisfile.h b/lib/sisfile.h
index aa5683d..0bfa000 100644
--- a/lib/sisfile.h
+++ b/lib/sisfile.h
@@ -1,3 +1,25 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#ifndef _SISFILE_H
#define _SISFILE_H
@@ -12,8 +34,6 @@ class SISReqRecord;
/**
* The top level container of a SIS file.
* Based on documentation by Alexander Thoukydides <alex@thouky.co.uk>.
- *
- * @author Daniel Brahneborg, 2002
*/
class SISFile
{
@@ -23,6 +43,9 @@ public:
*/
void fillFrom(uchar* buf);
+ /**
+ * Return the currently selected installation language.
+ */
int getLanguage();
/**
diff --git a/lib/sisfileheader.cpp b/lib/sisfileheader.cpp
index ddd8a11..f8b88d0 100644
--- a/lib/sisfileheader.cpp
+++ b/lib/sisfileheader.cpp
@@ -1,3 +1,24 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
#include "sisfileheader.h"
diff --git a/lib/sisfileheader.h b/lib/sisfileheader.h
index 98ca179..6f22c59 100644
--- a/lib/sisfileheader.h
+++ b/lib/sisfileheader.h
@@ -1,3 +1,25 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#ifndef _SISFILEHEADER_H
#define _SISFILEHEADER_H
diff --git a/lib/sisfilerecord.cpp b/lib/sisfilerecord.cpp
index 3102f1e..cb2665c 100644
--- a/lib/sisfilerecord.cpp
+++ b/lib/sisfilerecord.cpp
@@ -1,3 +1,24 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
#include "sisfilerecord.h"
#include "sisfile.h"
diff --git a/lib/sisfilerecord.h b/lib/sisfilerecord.h
index 1187ccf..d37d64e 100644
--- a/lib/sisfilerecord.h
+++ b/lib/sisfilerecord.h
@@ -1,3 +1,25 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#ifndef _SISFILERECORD_H
#define _SISFILERECORD_H
@@ -21,18 +43,18 @@ public:
void fillFrom(uchar* buf, int* base, SISFile* sisFile);
/**
- * 1 if multiple lang versions, otherwise 0.
+ * 1 if multiple language versions, otherwise 0.
*/
uint32 m_flags;
/**
* Type of file.
*
- * - 0: Standard file.
- * - 1: Text file to display during installation.
- * - 2: SIS component.
- * - 3: File to run during installation/removal.
- * - 4: Does not exist yet, but will be created when app is run, so
+ * - 0. Standard file.
+ * - 1. Text file to display during installation.
+ * - 2. SIS component.
+ * - 3. File to run during installation/removal.
+ * - 4. Does not exist yet, but will be created when app is run, so
* it should not be removed during an upgrade.
*/
uint32 m_fileType;
@@ -40,15 +62,15 @@ public:
/**
* If file type is 1:
*
- * - 0: Continue.
- * - 1: Yes, No (skip next file).
- * - 2: Yes, No (abort installation).
+ * - 0. Continue.
+ * - 1. Yes, No (skip next file).
+ * - 2. Yes, No (abort installation).
*
* If file type is 3:
*
- * - 0: Run during installation.
- * - 1: Run during removal.
- * - 2: Run during both installation and removal.
+ * - 0. Run during installation.
+ * - 1. Run during removal.
+ * - 2. Run during both installation and removal.
*/
uint32 m_fileDetails;
diff --git a/lib/sislangrecord.cpp b/lib/sislangrecord.cpp
index ede1d33..5540e6e 100644
--- a/lib/sislangrecord.cpp
+++ b/lib/sislangrecord.cpp
@@ -1,3 +1,24 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
#include "sislangrecord.h"
diff --git a/lib/sislangrecord.h b/lib/sislangrecord.h
index e532c4e..e8dbd06 100644
--- a/lib/sislangrecord.h
+++ b/lib/sislangrecord.h
@@ -1,3 +1,25 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#ifndef _SISLANGRECORD_H
#define _SISLANGRECORD_H
diff --git a/lib/sisreqrecord.cpp b/lib/sisreqrecord.cpp
index d0c2d12..75d9e51 100644
--- a/lib/sisreqrecord.cpp
+++ b/lib/sisreqrecord.cpp
@@ -1,3 +1,24 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
#include "sisreqrecord.h"
#include "sisfile.h"
diff --git a/lib/sisreqrecord.h b/lib/sisreqrecord.h
index bd9aff2..80481be 100644
--- a/lib/sisreqrecord.h
+++ b/lib/sisreqrecord.h
@@ -1,3 +1,25 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#ifndef _SISREQRECORD_H
#define _SISREQRECORD_H
diff --git a/lib/sistypes.cpp b/lib/sistypes.cpp
index eb23e5e..2dd8b61 100644
--- a/lib/sistypes.cpp
+++ b/lib/sistypes.cpp
@@ -1,3 +1,24 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
#include "sistypes.h"
diff --git a/lib/sistypes.h b/lib/sistypes.h
index fbee0d0..ce8b441 100644
--- a/lib/sistypes.h
+++ b/lib/sistypes.h
@@ -1,3 +1,25 @@
+/** -*-c++-*-
+ * $Id$
+ *
+ * This file is part of plptools.
+ *
+ * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#ifndef _SISTYPES_H
#define _SISTYPES_H