start working on a new plugin: mailregister

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1020 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2016-01-31 19:52:17 +00:00
parent c433b3fd41
commit 057607f9e5
12 changed files with 618 additions and 12 deletions

View File

@ -2,14 +2,15 @@
include Makefile.dep
ifndef CXX
ifeq ($(OSTYPE), FreeBSD)
CXX = clang++
else
CXX = g++-4.8
endif
endif
# CXX = g++-4.8
ifndef CXXFLAGS
CXXFLAGS = -Wall -O0 -g -fPIC -pthread -std=c++11 -I/usr/local/include -I/usr/include/postgresql -DEZC_USE_WINIX_LOGGER -DEZC_HAS_SPECIAL_STREAM
@ -67,13 +68,14 @@ winix: winix.so $(winix.src.files)
plugins: FORCE
@cd plugins/stats ; $(MAKE) -e
@cd plugins/thread ; $(MAKE) -e
@cd plugins/ticket ; $(MAKE) -e
@cd plugins/gallery ; $(MAKE) -e
@cd plugins/group ; $(MAKE) -e
@cd plugins/menu ; $(MAKE) -e
@cd plugins/export ; $(MAKE) -e
@cd plugins/stats ; $(MAKE) -e
@cd plugins/thread ; $(MAKE) -e
@cd plugins/ticket ; $(MAKE) -e
@cd plugins/gallery ; $(MAKE) -e
@cd plugins/group ; $(MAKE) -e
@cd plugins/menu ; $(MAKE) -e
@cd plugins/export ; $(MAKE) -e
@cd plugins/mailregister ; $(MAKE) -e
FORCE:
@ -92,6 +94,7 @@ clean:
@cd plugins/group ; $(MAKE) -e clean
@cd plugins/menu ; $(MAKE) -e clean
@cd plugins/export ; $(MAKE) -e clean
@cd plugins/mailregister ; $(MAKE) -e clean
@cd ../ezc/src ; $(MAKE) -e clean
@cd ../tito/src ; $(MAKE) -e clean
@cd ../pikotools ; $(MAKE) -e clean
@ -116,6 +119,7 @@ depend:
@cd plugins/group ; $(MAKE) -e depend
@cd plugins/menu ; $(MAKE) -e depend
@cd plugins/export ; $(MAKE) -e depend
@cd plugins/mailregister ; $(MAKE) -e depend
@cd ../ezc/src ; $(MAKE) -e depend
@cd ../tito/src ; $(MAKE) -e depend
@cd ../pikotools ; $(MAKE) -e depend

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2010-2014, Tomasz Sowa
* Copyright (c) 2010-2016, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -55,6 +55,11 @@ FunctionBase::FunctionBase()
}
FunctionBase::~FunctionBase()
{
}
void FunctionBase::SetConfig(Config * pconfig)
{

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2010-2014, Tomasz Sowa
* Copyright (c) 2010-2016, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -60,6 +60,8 @@ class FunctionBase
public:
FunctionBase();
virtual ~FunctionBase();
// user, group, permissions, url (function name)
Item fun;

View File

@ -0,0 +1,29 @@
include Makefile.o.dep
name = mailregister.so
all: $(name)
$(name): $(o)
$(CXX) -shared -Wl,-soname,$(name) -o $(name) $(CXXFLAGS) $(CXXWINIXINCLUDEFLAGS) $(LDFLAGS) *.o
%.o: %.cpp
$(CXX) -c $(CXXFLAGS) $(CXXWINIXINCLUDEFLAGS) $<
depend:
makedepend -Y. $(CXXWINIXINCLUDEFLAGS) -f- *.cpp > Makefile.dep
echo -n "o = " > Makefile.o.dep
ls -1 *.cpp | xargs -I foo echo -n foo " " | sed -E "s/([^\.]*)\.cpp[ ]/\1\.o/g" >> Makefile.o.dep
clean:
rm -f *.o
rm -f *.so
rm -f $(name)
include Makefile.dep

View File

@ -0,0 +1,180 @@
# DO NOT DELETE
funregistermail.o: funregistermail.h ../../../winix/functions/functionbase.h
funregistermail.o: ../../../winix/core/item.h
funregistermail.o: ../../../pikotools/space/space.h
funregistermail.o: ../../../pikotools/textstream/types.h
funregistermail.o: ../../../pikotools/date/date.h ../../../winix/db/db.h
funregistermail.o: ../../../winix/db/dbbase.h ../../../winix/db/dbconn.h
funregistermail.o: ../../../winix/db/dbtextstream.h
funregistermail.o: ../../../winix/core/textstream.h
funregistermail.o: ../../../winix/core/misc.h ../../../winix/core/item.h
funregistermail.o: ../../../winix/core/requesttypes.h
funregistermail.o: ../../../pikotools/textstream/textstream.h
funregistermail.o: ../../../pikotools/convert/convert.h
funregistermail.o: ../../../pikotools/convert/inttostr.h
funregistermail.o: ../../../pikotools/membuffer/membuffer.h
funregistermail.o: ../../../pikotools/textstream/types.h
funregistermail.o: ../../../pikotools/utf8/utf8.h
funregistermail.o: ../../../winix/core/winix_const.h
funregistermail.o: ../../../winix/core/error.h
funregistermail.o: ../../../pikotools/space/spaceparser.h
funregistermail.o: ../../../pikotools/space/space.h
funregistermail.o: ../../../winix/db/dbitemquery.h
funregistermail.o: ../../../winix/db/dbitemcolumns.h
funregistermail.o: ../../../winix/core/user.h ../../../winix/core/group.h
funregistermail.o: ../../../winix/core/dircontainer.h
funregistermail.o: ../../../winix/core/ugcontainer.h
funregistermail.o: ../../../winix/core/log.h ../../../winix/core/textstream.h
funregistermail.o: ../../../winix/core/logmanipulators.h
funregistermail.o: ../../../winix/core/slog.h ../../../winix/core/cur.h
funregistermail.o: ../../../winix/core/request.h ../../../winix/core/error.h
funregistermail.o: ../../../winix/core/config.h
funregistermail.o: ../../../winix/core/htmlfilter.h
funregistermail.o: ../../../winix/templates/htmltextstream.h
funregistermail.o: ../../../pikotools/space/spacetojson.h
funregistermail.o: ../../../ezc/src/outstreams.h
funregistermail.o: ../../../winix/core/session.h ../../../winix/core/user.h
funregistermail.o: ../../../winix/core/plugindata.h
funregistermail.o: ../../../winix/core/rebus.h ../../../winix/core/ipban.h
funregistermail.o: ../../../winix/core/mount.h
funregistermail.o: ../../../winix/templates/locale.h
funregistermail.o: ../../../winix/core/request.h ../../../winix/core/config.h
funregistermail.o: ../../../winix/core/system.h ../../../winix/core/job.h
funregistermail.o: ../../../winix/core/basethread.h
funregistermail.o: ../../../winix/core/synchro.h ../../../winix/core/dirs.h
funregistermail.o: ../../../winix/core/dircontainer.h
funregistermail.o: ../../../winix/notify/notify.h
funregistermail.o: ../../../winix/notify/notifypool.h
funregistermail.o: ../../../winix/templates/patterns.h
funregistermail.o: ../../../winix/templates/locale.h
funregistermail.o: ../../../winix/templates/localefilter.h
funregistermail.o: ../../../ezc/src/ezc.h ../../../ezc/src/generator.h
funregistermail.o: ../../../ezc/src/blocks.h ../../../ezc/src/cache.h
funregistermail.o: ../../../ezc/src/functions.h ../../../ezc/src/funinfo.h
funregistermail.o: ../../../ezc/src/objects.h ../../../ezc/src/pattern.h
funregistermail.o: ../../../ezc/src/patternparser.h
funregistermail.o: ../../../winix/notify/notifythread.h
funregistermail.o: ../../../winix/core/basethread.h
funregistermail.o: ../../../winix/notify/templatesnotify.h
funregistermail.o: ../../../winix/core/users.h
funregistermail.o: ../../../winix/core/ugcontainer.h
funregistermail.o: ../../../winix/core/lastcontainer.h
funregistermail.o: ../../../winix/core/mounts.h
funregistermail.o: ../../../winix/core/mountparser.h
funregistermail.o: ../../../winix/core/crypt.h ../../../winix/core/run.h
funregistermail.o: ../../../winix/core/users.h ../../../winix/core/groups.h
funregistermail.o: ../../../winix/core/group.h ../../../winix/core/loadavg.h
funregistermail.o: ../../../winix/core/image.h
funregistermail.o: ../../../winix/core/threadmanager.h
funregistermail.o: ../../../winix/core/timezones.h
funregistermail.o: ../../../winix/core/timezone.h
funregistermail.o: ../../../winix/core/synchro.h
init.o: ../../../winix/core/log.h ../../../winix/core/textstream.h
init.o: ../../../winix/core/logmanipulators.h
init.o: ../../../pikotools/textstream/textstream.h
init.o: ../../../pikotools/space/space.h
init.o: ../../../pikotools/textstream/types.h ../../../pikotools/date/date.h
init.o: ../../../pikotools/convert/convert.h
init.o: ../../../pikotools/convert/inttostr.h
init.o: ../../../pikotools/membuffer/membuffer.h
init.o: ../../../pikotools/textstream/types.h ../../../winix/core/slog.h
init.o: ../../../winix/core/cur.h ../../../winix/core/request.h
init.o: ../../../winix/core/requesttypes.h ../../../winix/core/item.h
init.o: ../../../winix/core/error.h ../../../winix/core/config.h
init.o: ../../../pikotools/space/spaceparser.h
init.o: ../../../pikotools/space/space.h ../../../winix/core/htmlfilter.h
init.o: ../../../winix/templates/htmltextstream.h
init.o: ../../../winix/core/textstream.h ../../../winix/core/misc.h
init.o: ../../../pikotools/utf8/utf8.h ../../../winix/core/winix_const.h
init.o: ../../../pikotools/space/spacetojson.h ../../../ezc/src/outstreams.h
init.o: ../../../winix/core/session.h ../../../winix/core/user.h
init.o: ../../../winix/core/plugindata.h ../../../winix/core/rebus.h
init.o: ../../../winix/core/ipban.h ../../../winix/core/mount.h
init.o: ../../../winix/templates/locale.h ../../../winix/core/plugin.h
init.o: ../../../winix/core/pluginmsg.h ../../../winix/core/log.h
init.o: ../../../winix/core/system.h ../../../winix/core/job.h
init.o: ../../../winix/core/basethread.h ../../../winix/core/synchro.h
init.o: ../../../winix/core/dirs.h ../../../winix/core/dircontainer.h
init.o: ../../../winix/db/db.h ../../../winix/db/dbbase.h
init.o: ../../../winix/db/dbconn.h ../../../winix/db/dbtextstream.h
init.o: ../../../winix/core/error.h ../../../winix/db/dbitemquery.h
init.o: ../../../winix/core/item.h ../../../winix/db/dbitemcolumns.h
init.o: ../../../winix/core/user.h ../../../winix/core/group.h
init.o: ../../../winix/core/dircontainer.h ../../../winix/core/ugcontainer.h
init.o: ../../../winix/notify/notify.h ../../../winix/notify/notifypool.h
init.o: ../../../winix/templates/patterns.h ../../../winix/templates/locale.h
init.o: ../../../winix/templates/localefilter.h ../../../ezc/src/ezc.h
init.o: ../../../ezc/src/generator.h ../../../ezc/src/blocks.h
init.o: ../../../ezc/src/cache.h ../../../ezc/src/functions.h
init.o: ../../../ezc/src/funinfo.h ../../../ezc/src/objects.h
init.o: ../../../ezc/src/pattern.h ../../../ezc/src/patternparser.h
init.o: ../../../winix/notify/notifythread.h ../../../winix/core/basethread.h
init.o: ../../../winix/notify/templatesnotify.h ../../../winix/core/config.h
init.o: ../../../winix/core/users.h ../../../winix/core/ugcontainer.h
init.o: ../../../winix/core/lastcontainer.h ../../../winix/core/mounts.h
init.o: ../../../winix/core/mountparser.h ../../../winix/core/crypt.h
init.o: ../../../winix/core/run.h ../../../winix/core/users.h
init.o: ../../../winix/core/groups.h ../../../winix/core/group.h
init.o: ../../../winix/core/loadavg.h ../../../winix/core/image.h
init.o: ../../../winix/core/threadmanager.h ../../../winix/core/timezones.h
init.o: ../../../winix/core/timezone.h ../../../winix/core/sessionmanager.h
init.o: ../../../winix/core/sessioncontainer.h
init.o: ../../../winix/core/ipbancontainer.h
init.o: ../../../winix/core/sessionidmanager.h ../../../tito/src/base64.h
init.o: ../../../tito/src/aes.h ../../../winix/functions/functions.h
init.o: ../../../winix/functions/functionbase.h ../../../winix/core/request.h
init.o: ../../../winix/core/system.h ../../../winix/core/synchro.h
init.o: ../../../winix/functions/functionparser.h ../../../winix/core/cur.h
init.o: ../../../winix/functions/account.h ../../../winix/functions/adduser.h
init.o: ../../../winix/functions/cat.h ../../../winix/functions/chmod.h
init.o: ../../../winix/functions/privchanger.h
init.o: ../../../winix/functions/chown.h ../../../winix/functions/ckeditor.h
init.o: ../../../winix/functions/cp.h ../../../winix/functions/default.h
init.o: ../../../winix/functions/download.h ../../../winix/functions/emacs.h
init.o: ../../../winix/functions/env.h ../../../winix/functions/imgcrop.h
init.o: ../../../winix/functions/last.h ../../../winix/functions/login.h
init.o: ../../../winix/functions/logout.h ../../../winix/functions/ln.h
init.o: ../../../winix/functions/ls.h ../../../winix/functions/man.h
init.o: ../../../winix/functions/meta.h ../../../winix/functions/mkdir.h
init.o: ../../../winix/functions/mv.h ../../../winix/functions/nicedit.h
init.o: ../../../winix/functions/node.h ../../../winix/functions/passwd.h
init.o: ../../../winix/functions/priv.h ../../../winix/functions/pw.h
init.o: ../../../winix/functions/reload.h ../../../winix/functions/rm.h
init.o: ../../../winix/functions/rmuser.h ../../../winix/functions/sort.h
init.o: ../../../winix/functions/specialdefault.h
init.o: ../../../winix/functions/stat.h ../../../winix/functions/subject.h
init.o: ../../../winix/functions/template.h
init.o: ../../../winix/functions/tinymce.h ../../../winix/functions/uname.h
init.o: ../../../winix/functions/upload.h ../../../winix/functions/uptime.h
init.o: ../../../winix/functions/who.h ../../../winix/functions/vim.h
init.o: ../../../winix/core/htmlfilter.h ../../../winix/templates/templates.h
init.o: ../../../winix/templates/patterncacher.h
init.o: ../../../winix/templates/indexpatterns.h
init.o: ../../../winix/templates/patterns.h
init.o: ../../../winix/templates/changepatterns.h
init.o: ../../../winix/templates/htmltextstream.h
init.o: ../../../winix/core/sessionmanager.h mdb.h ../../../winix/db/dbbase.h
init.o: ../../../winix/core/dirs.h
mdb.o: mdb.h ../../../winix/db/dbbase.h ../../../winix/core/dirs.h
mdb.o: ../../../winix/core/log.h ../../../winix/core/textstream.h
mdb.o: ../../../winix/core/logmanipulators.h
mdb.o: ../../../pikotools/textstream/textstream.h
mdb.o: ../../../pikotools/space/space.h ../../../pikotools/textstream/types.h
mdb.o: ../../../pikotools/date/date.h ../../../pikotools/convert/convert.h
mdb.o: ../../../pikotools/convert/inttostr.h
mdb.o: ../../../pikotools/membuffer/membuffer.h
mdb.o: ../../../pikotools/textstream/types.h ../../../winix/core/slog.h
mdb.o: ../../../winix/core/cur.h ../../../winix/core/request.h
mdb.o: ../../../winix/core/requesttypes.h ../../../winix/core/item.h
mdb.o: ../../../winix/core/error.h ../../../winix/core/config.h
mdb.o: ../../../pikotools/space/spaceparser.h
mdb.o: ../../../pikotools/space/space.h ../../../winix/core/htmlfilter.h
mdb.o: ../../../winix/templates/htmltextstream.h
mdb.o: ../../../winix/core/textstream.h ../../../winix/core/misc.h
mdb.o: ../../../pikotools/utf8/utf8.h ../../../winix/core/winix_const.h
mdb.o: ../../../pikotools/space/spacetojson.h ../../../ezc/src/outstreams.h
mdb.o: ../../../winix/core/session.h ../../../winix/core/user.h
mdb.o: ../../../winix/core/plugindata.h ../../../winix/core/rebus.h
mdb.o: ../../../winix/core/ipban.h ../../../winix/core/mount.h
mdb.o: ../../../winix/templates/locale.h

View File

@ -0,0 +1 @@
o = funregistermail.o init.o mdb.o

View File

@ -0,0 +1,78 @@
/*
* This file is a part of Winix
* and is distributed under the 2-Clause BSD licence.
* Author: Tomasz Sowa <t.sowa@ttmath.org>
*/
/*
* Copyright (c) 2016, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
#include "funregistermail.h"
namespace Winix
{
namespace MailRegister
{
FunRegisterMail::FunRegisterMail()
{
fun.url = L"register_mail";
}
bool FunRegisterMail::HasAccess()
{
return true;
}
void FunRegisterMail::MakePost()
{
}
void FunRegisterMail::MakeGet()
{
}
} // namespace
} // namespace Winix

View File

@ -0,0 +1,75 @@
/*
* This file is a part of Winix
* and is distributed under the 2-Clause BSD licence.
* Author: Tomasz Sowa <t.sowa@ttmath.org>
*/
/*
* Copyright (c) 2016, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef headerfile_winix_plugins_mailregister_funregistermail
#define headerfile_winix_plugins_mailregister_funregistermail
#include "functions/functionbase.h"
#include "db/db.h"
namespace Winix
{
namespace MailRegister
{
class FunRegisterMail : public FunctionBase
{
public:
FunRegisterMail();
bool HasAccess();
void MakePost();
void MakeGet();
private:
};
} // namespace
} // namespace Winix
#endif

View File

@ -0,0 +1,103 @@
/*
* This file is a part of Winix
* and is distributed under the 2-Clause BSD licence.
* Author: Tomasz Sowa <t.sowa@ttmath.org>
*/
/*
* Copyright (c) 2016, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
#include "core/log.h"
#include "core/plugin.h"
#include "mdb.h"
namespace Winix
{
extern "C" void Init(PluginInfo &);
namespace MailRegister
{
const wchar_t plugin_name[] = L"mailregister";
MDb mdb;
void AddWinixFunctions(PluginInfo & info)
{
// info.functions->Add(fun_export);
}
void InitPlugin(PluginInfo & info)
{
}
void AddEzcFunctions(PluginInfo & info);
} // namespace
void Init(PluginInfo & info)
{
using namespace MailRegister;
mdb.SetConn(info.db->GetConn());
mdb.LogQueries(info.config->log_db_query);
// plugin.Assign(WINIX_TEMPLATES_CREATEFUNCTIONS, AddEzcFunctions);
plugin.Assign(WINIX_CREATE_FUNCTIONS, AddWinixFunctions);
plugin.Assign(WINIX_PLUGIN_INIT, InitPlugin);
info.p1 = (void*)(plugin_name);
}
} // namespace Winix

View File

@ -0,0 +1,61 @@
/*
* This file is a part of Winix
* and is distributed under the 2-Clause BSD licence.
* Author: Tomasz Sowa <t.sowa@ttmath.org>
*/
/*
* Copyright (c) 2016, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
#include "mdb.h"
#include "core/log.h"
namespace Winix
{
namespace Export
{
}
} // namespace Winix

View File

@ -0,0 +1,68 @@
/*
* This file is a part of Winix
* and is distributed under the 2-Clause BSD licence.
* Author: Tomasz Sowa <t.sowa@ttmath.org>
*/
/*
* Copyright (c) 2016, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef headerfile_winix_plugins_mailregister_mdb
#define headerfile_winix_plugins_mailregister_mdb
#include <vector>
#include "db/dbbase.h"
#include "core/dirs.h"
namespace Winix
{
namespace MailRegister
{
class MDb : public DbBase
{
public:
private:
};
}
} // namespace Winix
#endif