summaryrefslogtreecommitdiff
path: root/libopie2/templates
authoralwin <alwin>2004-03-02 22:17:49 (UTC)
committer alwin <alwin>2004-03-02 22:17:49 (UTC)
commitbd0f8ca68a892acc83317b45958ab59c972deb68 (patch) (unidiff)
treebefefbf63eb717bc7df10653a80046e5b73d0519 /libopie2/templates
parentab5d00efb20540ff98c06d26496c19ea17bc0da8 (diff)
downloadopie-bd0f8ca68a892acc83317b45958ab59c972deb68.zip
opie-bd0f8ca68a892acc83317b45958ab59c972deb68.tar.gz
opie-bd0f8ca68a892acc83317b45958ab59c972deb68.tar.bz2
drafts how namespaces in opie2 should be handled.
Diffstat (limited to 'libopie2/templates') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/templates/lib_cpp.cpp63
-rw-r--r--libopie2/templates/lib_h.h63
2 files changed, 126 insertions, 0 deletions
diff --git a/libopie2/templates/lib_cpp.cpp b/libopie2/templates/lib_cpp.cpp
new file mode 100644
index 0000000..b3e25bd
--- a/dev/null
+++ b/libopie2/templates/lib_cpp.cpp
@@ -0,0 +1,63 @@
1/*
2 * this file describes how the usage in namespaces in libopie2 should be done
3 * ODP is the namespace for whole opie2 stuff
4 * the parts are separated as follow:
5 * ONet: opienet2
6 * OPim: opiepim2
7 * ODb: opiedb2
8 * OCore: opiecore2
9 * OMm: opiemm2
10 * OUi: opieui2
11 * a class MUST start with O - so we make sure that it does not
12 * conflict with other stuff.
13 * don't use "using namespace .." in implementations.
14 */
15/*
16 This file is part of the Opie Project
17 Copyright (C) The Main Author <main-author@whereever.org>
18 =. Copyright (C) The Opie Team <opie-devel@handhelds.org>
19 .=l.
20           .>+-=
21 _;:,     .>    :=|. This program is free software; you can
22.> <`_,   >  .   <= redistribute it and/or modify it under
23:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
24.="- .-=="i,     .._ License as published by the Free Software
25 - .   .-<_>     .<> Foundation; either version 2 of the License,
26     ._= =}       : or (at your option) any later version.
27    .%`+i>       _;_.
28    .i_,=:_.      -<s. This program is distributed in the hope that
29     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
30    : ..    .:,     . . . without even the implied warranty of
31    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
32  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
33..}^=.=       =       ; Library General Public License for more
34++=   -.     .`     .: details.
35 :     =  ...= . :.=-
36 -.   .:....=;==+<; You should have received a copy of the GNU
37  -_. . .   )=.  = Library General Public License along with
38    --        :-=` this library; see the file COPYING.LIB.
39 If not, write to the Free Software Foundation,
40 Inc., 59 Temple Place - Suite 330,
41 Boston, MA 02111-1307, USA.
42*/
43
44#include <opie2/h.h>
45
46/* OPIE */
47opie (and for now, qpe) includes here
48
49/* QT */
50qte includes here
51
52/* STD */
53standard includes here
54
55namespace ODP {
56 namespace ONet {
57 OFtpNetwork::OFtpNetwork() {
58
59 }
60 and so on.
61 }
62}
63
diff --git a/libopie2/templates/lib_h.h b/libopie2/templates/lib_h.h
new file mode 100644
index 0000000..aec635f
--- a/dev/null
+++ b/libopie2/templates/lib_h.h
@@ -0,0 +1,63 @@
1/*
2 * this file describes how the usage in namespaces in libopie2 should be done
3 * ODP is the namespace for whole opie2 stuff
4 * the parts are separated as follow:
5 * ONet: opienet2
6 * OPim: opiepim2
7 * ODb: opiedb2
8 * OCore: opiecore2
9 * OMm: opiemm2
10 * OUi: opieui2
11 * a class MUST start with O - so we make sure that it does not
12 * conflict with other stuff.
13 * don't use "using namespace .." in implementations.
14 */
15/*
16 This file is part of the Opie Project
17 Copyright (C) The Main Author <main-author@whereever.org>
18 =. Copyright (C) The Opie Team <opie-devel@handhelds.org>
19 .=l.
20           .>+-=
21 _;:,     .>    :=|. This program is free software; you can
22.> <`_,   >  .   <= redistribute it and/or modify it under
23:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
24.="- .-=="i,     .._ License as published by the Free Software
25 - .   .-<_>     .<> Foundation; either version 2 of the License,
26     ._= =}       : or (at your option) any later version.
27    .%`+i>       _;_.
28    .i_,=:_.      -<s. This program is distributed in the hope that
29     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
30    : ..    .:,     . . . without even the implied warranty of
31    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
32  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
33..}^=.=       =       ; Library General Public License for more
34++=   -.     .`     .: details.
35 :     =  ...= . :.=-
36 -.   .:....=;==+<; You should have received a copy of the GNU
37  -_. . .   )=.  = Library General Public License along with
38    --        :-=` this library; see the file COPYING.LIB.
39 If not, write to the Free Software Foundation,
40 Inc., 59 Temple Place - Suite 330,
41 Boston, MA 02111-1307, USA.
42*/
43
44#ifndef THISFILE_H
45#define THISFILE_H
46
47/* OPIE */
48opie (and for now, qpe) includes here
49
50/* QT */
51qte includes here
52
53/* STD */
54
55namespace ODP
56{
57 namspace ONet {
58 classes here
59 }
60}
61
62#endif
63