ultimatepp/bazaar/UpdaterTest/UpdaterTest.cpp
micio 16cc1bc8d1 Bazaar/Updater : Completed shell embedding for Linux
git-svn-id: svn://ultimatepp.org/upp/trunk@3023 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-01-16 21:00:54 +00:00

27 lines
582 B
C++

#include <Updater/Updater.h>
GUI_APP_MAIN
{
Updater updater;
updater
.SetMaxVersion(1.60)
.SetWebRoot("www.timberstruct.com/webupdater/updatertest")
.UpdateManual()
.SetCathegory("Office")
.SetComment("A sample test program")
.SetExtensions(Vector<String>() << "*.xxx" << "*.yyy")
.SetIcon(updater.DefaultIcon());
// run updater -- DON'T change this !
if(!updater.Run())
return;
// run the default prompts -- see Updater source code
// if you need some fine-grained control
if(!updater.DefaultPrompts())
return;
PromptOK("App version is 1.00");
}