├── Drupalmail
├── parser
│ ├── parser_snip.txt
│ ├── 3rdparty
│ │ ├── Qtidy.cpp
│ │ ├── Qtidy.h
│ │ └── rfccodecs.h
│ ├── tidy_clean.h
│ ├── mime_standard.cpp
│ └── parser_utils.h
├── coreapp
│ ├── Note.txt
│ ├── handler_net.h
│ ├── client_session.h
│ ├── handler_net.cpp
│ └── client_session.cpp
├── drupal
│ ├── drupal_journalist.cpp
│ └── drupal_journalist.h
├── main.cpp
├── imap
│ └── net_imap_standard.cpp
└── Drupalmail.pro
├── console_doc
├── lib
│ └── dummy
├── Readme.txt
├── xslt_style_log.txt
├── pdf2xml.dtd
├── qt5.pro
└── doclib
│ ├── pdfhtml.h
│ ├── doclib.pro
│ ├── docxzip.h
│ ├── document.h
│ ├── oldcode_backup.txt
│ ├── odtzip.h
│ └── xmledit.h
├── Gmailsend
├── balla.odt
├── dmail.icns
├── images
│ ├── edit-cut.png
│ ├── list-add.png
│ ├── edit-copy.png
│ ├── edit-paste.png
│ ├── edit-redo.png
│ ├── edit-undo.png
│ ├── text-html.png
│ ├── bulleted-list.png
│ ├── document-new.png
│ ├── document-open.png
│ ├── document-save.png
│ ├── insert-html.png
│ ├── list-remove.png
│ ├── numbered-list.png
│ ├── edit-select-all.png
│ ├── image-x-generic.png
│ ├── document-save-as.png
│ ├── format-indent-less.png
│ ├── format-indent-more.png
│ ├── format-text-bold.png
│ ├── format-text-italic.png
│ ├── format-justify-fill.png
│ ├── format-justify-left.png
│ ├── format-justify-right.png
│ ├── format-justify-center.png
│ ├── format-text-underline.png
│ └── format-text-strikethrough.png
├── dummy.h
├── gmailsms.cpp
├── Info.plist
├── gmailsms.h
├── README.txt
├── box.qrc
├── gmailsend.pro
├── mwindow.h
└── main.cpp
├── document_editor_2
├── src
│ ├── docformat
│ │ ├── pdf
│ │ │ └── note
│ │ ├── .DS_Store
│ │ └── ooo
│ │ │ ├── document.h
│ │ │ ├── converter.h
│ │ │ ├── styleparser.h
│ │ │ └── styleinformation.h
│ ├── win.rc
│ ├── ODTicon.icns
│ ├── ODTicon.ico
│ ├── ODTicon.png
│ ├── oo_icon.ico
│ ├── oo_icon.png
│ ├── images
│ │ ├── logo32.png
│ │ ├── ODTicon.png
│ │ ├── oo_icon.png
│ │ ├── print-24.png
│ │ ├── print-32.png
│ │ ├── fit-page-24.png
│ │ ├── fit-page-32.png
│ │ ├── go-first-24.png
│ │ ├── go-first-32.png
│ │ ├── go-last-24.png
│ │ ├── go-last-32.png
│ │ ├── go-next-24.png
│ │ ├── go-next-32.png
│ │ ├── image_test.odt
│ │ ├── mac
│ │ │ ├── editcut.png
│ │ │ ├── filenew.png
│ │ │ ├── zoomin.png
│ │ │ ├── zoomout.png
│ │ │ ├── editcopy.png
│ │ │ ├── editpaste.png
│ │ │ ├── editredo.png
│ │ │ ├── editundo.png
│ │ │ ├── exportpdf.png
│ │ │ ├── fileopen.png
│ │ │ ├── fileprint.png
│ │ │ ├── filesave.png
│ │ │ ├── textbold.png
│ │ │ ├── textleft.png
│ │ │ ├── textright.png
│ │ │ ├── textunder.png
│ │ │ ├── textcenter.png
│ │ │ ├── textitalic.png
│ │ │ └── textjustify.png
│ │ ├── win
│ │ │ ├── editcut.png
│ │ │ ├── filenew.png
│ │ │ ├── zoomin.png
│ │ │ ├── zoomout.png
│ │ │ ├── editcopy.png
│ │ │ ├── editpaste.png
│ │ │ ├── editredo.png
│ │ │ ├── editundo.png
│ │ │ ├── exportpdf.png
│ │ │ ├── fileopen.png
│ │ │ ├── fileprint.png
│ │ │ ├── filesave.png
│ │ │ ├── textbold.png
│ │ │ ├── textleft.png
│ │ │ ├── textright.png
│ │ │ ├── textunder.png
│ │ │ ├── textcenter.png
│ │ │ ├── textitalic.png
│ │ │ └── textjustify.png
│ │ ├── zoom-in-24.png
│ │ ├── zoom-in-32.png
│ │ ├── zoom-out-24.png
│ │ ├── zoom-out-32.png
│ │ ├── fit-width-24.png
│ │ ├── fit-width-32.png
│ │ ├── page-setup-24.png
│ │ ├── page-setup-32.png
│ │ ├── status-color.png
│ │ ├── go-previous-24.png
│ │ ├── go-previous-32.png
│ │ ├── view-page-one-24.png
│ │ ├── view-page-one-32.png
│ │ ├── layout-portrait-24.png
│ │ ├── layout-portrait-32.png
│ │ ├── status-gray-scale.png
│ │ ├── view-page-multi-24.png
│ │ ├── view-page-multi-32.png
│ │ ├── view-page-sided-24.png
│ │ ├── view-page-sided-32.png
│ │ ├── layout-landscape-24.png
│ │ └── layout-landscape-32.png
│ ├── main.cpp
│ ├── tools
│ │ └── docmargin.h
│ ├── allconfig.h
│ ├── test.xml
│ └── Info.plist
├── sample.odt
├── sample.ott
├── image_test.odt
├── texteditoo.odt
├── bin
│ ├── image_test.odt
│ └── dummy.txt
├── document_editor_2.pro
├── Readme.txt
└── config.pri
├── xsltwaydoc
├── style
│ └── .DS_Store
├── XX.pro
└── odtdocxlib
│ ├── config.h
│ └── odtzip.h
├── GmailHand
├── lib
│ ├── qtopiamail
│ │ ├── resources
│ │ │ ├── mailaccounts-100-101.sqlite.sql
│ │ │ ├── mailmessages-102-103.sqlite.sql
│ │ │ ├── obsoletefiles.sqlite.sql
│ │ │ ├── mailaccounts-101-102.sqlite.sql
│ │ │ ├── missingmessages-100-101.sqlite.sql
│ │ │ ├── mailmessages-103-104.sqlite.sql
│ │ │ ├── mailthreads.sqlite.sql
│ │ │ ├── missingancestors-100-101.sqlite.sql
│ │ │ ├── mailfolders-102-103.sqlite.sql
│ │ │ ├── deletedmessages-100-101.sqlite.sql
│ │ │ ├── mailmessages-100-101.sqlite.sql
│ │ │ ├── maintenancerecord.sqlite.sql
│ │ │ ├── mailsubjects.sqlite.sql
│ │ │ ├── mailstatusflags-100-101.sqlite.sql
│ │ │ ├── mailmessages-104-105.sqlite.sql
│ │ │ ├── mailmessages-101-102.sqlite.sql
│ │ │ ├── mailaccounts-104-105.sqlite.sql
│ │ │ ├── mailfolders-101-102.sqlite.sql
│ │ │ ├── mailmessageidentifiers.sqlite.sql
│ │ │ ├── mailstatusflags.sqlite.sql
│ │ │ ├── mailfolderlinks.sqlite.sql
│ │ │ ├── missingmessages.sqlite.sql
│ │ │ ├── mailfoldercustom.sqlite.sql
│ │ │ ├── mailthreadmessages.sqlite.sql
│ │ │ ├── mailthreadsubjects.sqlite.sql
│ │ │ ├── mailaccountcustom.sqlite.sql
│ │ │ ├── mailaccounts.sqlite.sql
│ │ │ ├── mailmessagecustom.sqlite.sql
│ │ │ ├── mailaccountconfig.sqlite.sql
│ │ │ ├── missingancestors.sqlite.sql
│ │ │ ├── mailaccountfolders.sqlite.sql
│ │ │ ├── mailfolders-103-104.sqlite.sql
│ │ │ ├── deletedmessages.sqlite.sql
│ │ │ ├── mailaccounts-102-103.sqlite.sql
│ │ │ ├── mailmessageidentifiers-100-101.sqlite.sql
│ │ │ ├── mailfolders.sqlite.sql
│ │ │ ├── mailaccounts-105-106.sqlite.sql
│ │ │ └── mailmessages.sqlite.sql
│ │ ├── libqtopiamail-en_US.ts
│ │ ├── pics
│ │ │ ├── flag.png
│ │ │ ├── flag_toget.png
│ │ │ ├── flag_normal.png
│ │ │ ├── flag_removed.png
│ │ │ ├── flag_tosend.png
│ │ │ ├── flag_unread.png
│ │ │ ├── flag_unfinished.png
│ │ │ └── icons
│ │ │ │ ├── 14x14
│ │ │ │ └── sendmail.png
│ │ │ │ └── 16x16
│ │ │ │ └── mail_get.png
│ │ ├── qtopiamail_qt.qrc
│ │ ├── qtopiamail_icons.qrc
│ │ ├── qmailfolderfwd.h
│ │ ├── qmaildatacomparator.h
│ │ ├── support
│ │ │ ├── qmailpluginmanager.h
│ │ │ ├── qcopapplicationchannel.h
│ │ │ └── qcopserver.h
│ │ ├── qmailmessagelistmodel.h
│ │ ├── qprivateimplementation.cpp
│ │ ├── qmailmessagethreadedmodel.h
│ │ └── qmailfoldersortkey_p.h
│ └── omapd
│ │ ├── examples
│ │ ├── README
│ │ └── dhcpd.conf
│ │ ├── certgen.sh
│ │ ├── plugins
│ │ └── RAMHashTables
│ │ │ ├── RAMHashTables.pro
│ │ │ └── mapgraphplugin.h
│ │ ├── README
│ │ ├── omapd.pro
│ │ ├── mapgraphinterface.h
│ │ ├── managementserver.h
│ │ ├── metadata.cpp
│ │ ├── server.h
│ │ ├── clientconfiguration.cpp
│ │ ├── clientconfiguration.h
│ │ ├── metadata.h
│ │ └── mapclient.cpp
├── vario_controll.cpp
├── Mail.cpp
├── Mail.h
├── pwd.txt
├── vario_controll.h
├── drupal_journalist.cpp
├── drupal_journalist.h
├── GmailHand.pro
├── main.cpp
├── hand_rotatesample.txt
├── mail_format.html
├── deflate_chunk_incomming.h
└── parser_eml.h
├── .gitignore
├── tidylib
├── version.h
├── iconvtc.h
├── charsets.h
├── entities.h
├── win32tc.h
├── include
│ └── fileio.h
├── forward.h
├── utf8.h
├── alloc.c
├── tidylib.pro
├── parser.h
├── xmlhighlighter.h
├── fileio.c
├── tmbstr.h
└── pprint.h
└── README.md
/Drupalmail/parser/parser_snip.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/console_doc/lib/dummy:
--------------------------------------------------------------------------------
1 | /// placeholder dir to libs
--------------------------------------------------------------------------------
/Drupalmail/coreapp/Note.txt:
--------------------------------------------------------------------------------
1 | hello place here
2 |
3 | http://unicode-table.com/en/#basic-latin
4 |
--------------------------------------------------------------------------------
/Gmailsend/balla.odt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/balla.odt
--------------------------------------------------------------------------------
/document_editor_2/src/docformat/pdf/note:
--------------------------------------------------------------------------------
1 | brew install -v poppler --with-qt4 --enable-xpdf-headers
--------------------------------------------------------------------------------
/Gmailsend/dmail.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/dmail.icns
--------------------------------------------------------------------------------
/console_doc/Readme.txt:
--------------------------------------------------------------------------------
1 | Method to convert document to html
2 | - pdf
3 | - docx
4 | - odt
5 | - rtf
6 |
--------------------------------------------------------------------------------
/document_editor_2/src/win.rc:
--------------------------------------------------------------------------------
1 | IDI_ICON1 ICON DISCARDABLE "ODTicon.ico"
2 |
3 |
--------------------------------------------------------------------------------
/xsltwaydoc/style/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/xsltwaydoc/style/.DS_Store
--------------------------------------------------------------------------------
/Gmailsend/images/edit-cut.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/edit-cut.png
--------------------------------------------------------------------------------
/Gmailsend/images/list-add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/list-add.png
--------------------------------------------------------------------------------
/document_editor_2/sample.odt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/sample.odt
--------------------------------------------------------------------------------
/document_editor_2/sample.ott:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/sample.ott
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailaccounts-100-101.sqlite.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE mailaccounts ADD COLUMN status INTEGER;
2 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailmessages-102-103.sqlite.sql:
--------------------------------------------------------------------------------
1 | UPDATE mailmessages SET frommailbox = NULL;
2 |
3 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/obsoletefiles.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE obsoletefiles (
2 | mailfile VARCHAR);
3 |
--------------------------------------------------------------------------------
/Gmailsend/images/edit-copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/edit-copy.png
--------------------------------------------------------------------------------
/Gmailsend/images/edit-paste.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/edit-paste.png
--------------------------------------------------------------------------------
/Gmailsend/images/edit-redo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/edit-redo.png
--------------------------------------------------------------------------------
/Gmailsend/images/edit-undo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/edit-undo.png
--------------------------------------------------------------------------------
/Gmailsend/images/text-html.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/text-html.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailaccounts-101-102.sqlite.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE mailaccounts ADD COLUMN signature VARCHAR;
2 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/missingmessages-100-101.sqlite.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE missingmessages ADD COLUMN level INTEGER;
2 |
--------------------------------------------------------------------------------
/Gmailsend/images/bulleted-list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/bulleted-list.png
--------------------------------------------------------------------------------
/Gmailsend/images/document-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/document-new.png
--------------------------------------------------------------------------------
/Gmailsend/images/document-open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/document-open.png
--------------------------------------------------------------------------------
/Gmailsend/images/document-save.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/document-save.png
--------------------------------------------------------------------------------
/Gmailsend/images/insert-html.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/insert-html.png
--------------------------------------------------------------------------------
/Gmailsend/images/list-remove.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/list-remove.png
--------------------------------------------------------------------------------
/Gmailsend/images/numbered-list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/numbered-list.png
--------------------------------------------------------------------------------
/document_editor_2/image_test.odt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/image_test.odt
--------------------------------------------------------------------------------
/document_editor_2/src/ODTicon.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/ODTicon.icns
--------------------------------------------------------------------------------
/document_editor_2/src/ODTicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/ODTicon.ico
--------------------------------------------------------------------------------
/document_editor_2/src/ODTicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/ODTicon.png
--------------------------------------------------------------------------------
/document_editor_2/src/oo_icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/oo_icon.ico
--------------------------------------------------------------------------------
/document_editor_2/src/oo_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/oo_icon.png
--------------------------------------------------------------------------------
/document_editor_2/texteditoo.odt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/texteditoo.odt
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailmessages-103-104.sqlite.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE mailmessages ADD COLUMN receivedstamp TIMESTAMP;
2 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailthreads.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailthreads (
2 | id INTEGER PRIMARY KEY NOT NULL);
3 |
--------------------------------------------------------------------------------
/Gmailsend/images/edit-select-all.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/edit-select-all.png
--------------------------------------------------------------------------------
/Gmailsend/images/image-x-generic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/image-x-generic.png
--------------------------------------------------------------------------------
/document_editor_2/bin/image_test.odt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/bin/image_test.odt
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/libqtopiamail-en_US.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/pics/flag.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/GmailHand/lib/qtopiamail/pics/flag.png
--------------------------------------------------------------------------------
/Gmailsend/images/document-save-as.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/document-save-as.png
--------------------------------------------------------------------------------
/Gmailsend/images/format-indent-less.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/format-indent-less.png
--------------------------------------------------------------------------------
/Gmailsend/images/format-indent-more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/format-indent-more.png
--------------------------------------------------------------------------------
/Gmailsend/images/format-text-bold.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/format-text-bold.png
--------------------------------------------------------------------------------
/Gmailsend/images/format-text-italic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/format-text-italic.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/logo32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/logo32.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/missingancestors-100-101.sqlite.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE missingancestors ADD COLUMN state INTEGER DEFAULT 0;
2 |
--------------------------------------------------------------------------------
/Gmailsend/images/format-justify-fill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/format-justify-fill.png
--------------------------------------------------------------------------------
/Gmailsend/images/format-justify-left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/format-justify-left.png
--------------------------------------------------------------------------------
/Gmailsend/images/format-justify-right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/format-justify-right.png
--------------------------------------------------------------------------------
/console_doc/xslt_style_log.txt:
--------------------------------------------------------------------------------
1 | Created on 18 dez 2013, 13:56
2 | log from style update.
3 | fix min-height document to doc binary version.
4 |
--------------------------------------------------------------------------------
/document_editor_2/src/docformat/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/docformat/.DS_Store
--------------------------------------------------------------------------------
/document_editor_2/src/images/ODTicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/ODTicon.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/oo_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/oo_icon.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/print-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/print-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/print-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/print-32.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/pics/flag_toget.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/GmailHand/lib/qtopiamail/pics/flag_toget.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailfolders-102-103.sqlite.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE mailfolders ADD COLUMN serverundiscoveredcount INTEGER DEFAULT 0;
2 |
--------------------------------------------------------------------------------
/Gmailsend/images/format-justify-center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/format-justify-center.png
--------------------------------------------------------------------------------
/Gmailsend/images/format-text-underline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/format-text-underline.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/fit-page-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/fit-page-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/fit-page-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/fit-page-32.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/go-first-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/go-first-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/go-first-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/go-first-32.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/go-last-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/go-last-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/go-last-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/go-last-32.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/go-next-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/go-next-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/go-next-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/go-next-32.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/image_test.odt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/image_test.odt
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/editcut.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/editcut.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/filenew.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/filenew.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/zoomin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/zoomin.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/zoomout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/zoomout.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/editcut.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/editcut.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/filenew.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/filenew.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/zoomin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/zoomin.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/zoomout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/zoomout.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/zoom-in-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/zoom-in-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/zoom-in-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/zoom-in-32.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/zoom-out-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/zoom-out-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/zoom-out-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/zoom-out-32.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/pics/flag_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/GmailHand/lib/qtopiamail/pics/flag_normal.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/pics/flag_removed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/GmailHand/lib/qtopiamail/pics/flag_removed.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/pics/flag_tosend.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/GmailHand/lib/qtopiamail/pics/flag_tosend.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/pics/flag_unread.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/GmailHand/lib/qtopiamail/pics/flag_unread.png
--------------------------------------------------------------------------------
/Gmailsend/images/format-text-strikethrough.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/Gmailsend/images/format-text-strikethrough.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/fit-width-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/fit-width-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/fit-width-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/fit-width-32.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/editcopy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/editcopy.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/editpaste.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/editpaste.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/editredo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/editredo.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/editundo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/editundo.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/exportpdf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/exportpdf.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/fileopen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/fileopen.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/fileprint.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/fileprint.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/filesave.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/filesave.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/textbold.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/textbold.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/textleft.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/textleft.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/textright.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/textright.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/textunder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/textunder.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/page-setup-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/page-setup-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/page-setup-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/page-setup-32.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/status-color.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/status-color.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/editcopy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/editcopy.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/editpaste.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/editpaste.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/editredo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/editredo.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/editundo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/editundo.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/exportpdf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/exportpdf.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/fileopen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/fileopen.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/fileprint.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/fileprint.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/filesave.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/filesave.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/textbold.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/textbold.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/textleft.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/textleft.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/textright.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/textright.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/textunder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/textunder.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/pics/flag_unfinished.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/GmailHand/lib/qtopiamail/pics/flag_unfinished.png
--------------------------------------------------------------------------------
/GmailHand/vario_controll.cpp:
--------------------------------------------------------------------------------
1 | #include "vario_controll.h"
2 |
3 | Vario_Controll::Vario_Controll(QObject *parent) :
4 | QObject(parent)
5 | {
6 | }
7 |
--------------------------------------------------------------------------------
/document_editor_2/src/images/go-previous-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/go-previous-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/go-previous-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/go-previous-32.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/textcenter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/textcenter.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/textitalic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/textitalic.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/mac/textjustify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/mac/textjustify.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/view-page-one-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/view-page-one-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/view-page-one-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/view-page-one-32.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/textcenter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/textcenter.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/textitalic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/textitalic.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/win/textjustify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/win/textjustify.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/deletedmessages-100-101.sqlite.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE deletedmessages ADD COLUMN parentfolderid INTEGER REFERENCES mailfolders(id);
2 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailmessages-100-101.sqlite.sql:
--------------------------------------------------------------------------------
1 | UPDATE mailmessages SET mailfile = 'qtopiamailfile:' || mailfile WHERE mailfile <> '';
2 |
3 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/maintenancerecord.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE maintenancerecord (
2 | task VARCHAR,
3 | performed TIMESTAMP NOT NULL);
4 |
--------------------------------------------------------------------------------
/document_editor_2/src/images/layout-portrait-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/layout-portrait-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/layout-portrait-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/layout-portrait-32.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/status-gray-scale.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/status-gray-scale.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/view-page-multi-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/view-page-multi-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/view-page-multi-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/view-page-multi-32.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/view-page-sided-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/view-page-sided-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/view-page-sided-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/view-page-sided-32.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/pics/icons/14x14/sendmail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/GmailHand/lib/qtopiamail/pics/icons/14x14/sendmail.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/pics/icons/16x16/mail_get.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/GmailHand/lib/qtopiamail/pics/icons/16x16/mail_get.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailsubjects.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailsubjects (
2 | id INTEGER PRIMARY KEY NOT NULL,
3 | basesubject VARCHAR UNIQUE);
4 |
--------------------------------------------------------------------------------
/document_editor_2/document_editor_2.pro:
--------------------------------------------------------------------------------
1 | !include(config.pri ) {
2 | message( "config.pri not found" )
3 | }
4 | TEMPLATE = subdirs
5 |
6 | SUBDIRS = src
--------------------------------------------------------------------------------
/document_editor_2/src/images/layout-landscape-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/layout-landscape-24.png
--------------------------------------------------------------------------------
/document_editor_2/src/images/layout-landscape-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pehohlva/qt-gmail-access/HEAD/document_editor_2/src/images/layout-landscape-32.png
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailstatusflags-100-101.sqlite.sql:
--------------------------------------------------------------------------------
1 | UPDATE mailstatusflags SET name='CanTransmit' WHERE context='accountstatus' AND name='CanSend';
2 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailmessages-104-105.sqlite.sql:
--------------------------------------------------------------------------------
1 | UPDATE mailstatusflags SET name = 'ContentAvailable' WHERE name = 'Downloaded' AND context = 'messagestatus';
2 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailmessages-101-102.sqlite.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE mailmessages ADD COLUMN responseid INTEGER;
2 | ALTER TABLE mailmessages ADD COLUMN responsetype INTEGER;
3 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files
2 | *.slo
3 | *.lo
4 | *.o
5 |
6 | # Compiled Dynamic libraries
7 | *.so
8 | *.dylib
9 |
10 | # Compiled Static libraries
11 | *.lai
12 | *.la
13 | *.a
14 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/qtopiamail_qt.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | resources/mime.types
4 |
5 |
6 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailaccounts-104-105.sqlite.sql:
--------------------------------------------------------------------------------
1 | UPDATE mailaccounts SET status = status | ( SELECT (1 << max(statusbit)) FROM mailstatusflags WHERE context = 'accountstatus' );
2 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailfolders-101-102.sqlite.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE mailfolders ADD COLUMN servercount INTEGER DEFAULT 0;
2 | ALTER TABLE mailfolders ADD COLUMN serverunreadcount INTEGER DEFAULT 0;
3 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailmessageidentifiers.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailmessageidentifiers (
2 | id INTEGER,
3 | identifier VARCHAR,
4 | FOREIGN KEY (id) REFERENCES mailmessages(id));
5 |
--------------------------------------------------------------------------------
/Gmailsend/dummy.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: dummy.h
3 | * Author: pro
4 | *
5 | * Created on 16. Oktober 2013, 10:43
6 | */
7 |
8 | #ifndef DUMMY_H
9 | #define DUMMY_H
10 |
11 |
12 |
13 | #endif /* DUMMY_H */
14 |
15 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailstatusflags.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailstatusflags (
2 | name VARCHAR(100) NOT NULL,
3 | context VARCHAR(100) NOT NULL,
4 | statusbit INTEGER NOT NULL,
5 | PRIMARY KEY(name, context));
6 |
7 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailfolderlinks.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailfolderlinks (
2 | id INTEGER,
3 | descendantid INTEGER,
4 | FOREIGN KEY (id) REFERENCES mailfolders(id),
5 | FOREIGN KEY (descendantid) REFERENCES mailfolders(id));
6 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/missingmessages.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE missingmessages (
2 | id INTEGER,
3 | identifier VARCHAR,
4 | level INTEGER,
5 | PRIMARY KEY (id, identifier),
6 | FOREIGN KEY (id) REFERENCES mailmessages(id));
7 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailfoldercustom.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailfoldercustom (
2 | id INTEGER NOT NULL,
3 | name VARCHAR NOT NULL,
4 | value VARCHAR NOT NULL,
5 | PRIMARY KEY (id, name),
6 | FOREIGN KEY (id) REFERENCES mailfolders(id));
7 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailthreadmessages.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailthreadmessages (
2 | threadid INTEGER,
3 | messageid INTEGER,
4 | FOREIGN KEY (threadid) REFERENCES mailthreads(id),
5 | FOREIGN KEY (messageid) REFERENCES mailmessages(id));
6 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailthreadsubjects.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailthreadsubjects (
2 | threadid INTEGER,
3 | subjectid INTEGER,
4 | FOREIGN KEY (threadid) REFERENCES mailthreads(id),
5 | FOREIGN KEY (subjectid) REFERENCES mailsubjects(id));
6 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailaccountcustom.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailaccountcustom (
2 | id INTEGER NOT NULL,
3 | name VARCHAR NOT NULL,
4 | value VARCHAR NOT NULL,
5 | PRIMARY KEY (id, name),
6 | FOREIGN KEY (id) REFERENCES mailaccounts(id));
7 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailaccounts.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailaccounts(
2 | id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
3 | type INTEGER NOT NULL,
4 | name VARCHAR,
5 | emailaddress VARCHAR,
6 | status INTEGER,
7 | signature VARCHAR);
8 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailmessagecustom.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailmessagecustom (
2 | id INTEGER NOT NULL,
3 | name VARCHAR NOT NULL,
4 | value VARCHAR NOT NULL,
5 | PRIMARY KEY (id, name),
6 | FOREIGN KEY (id) REFERENCES mailmessages(id));
7 |
--------------------------------------------------------------------------------
/GmailHand/Mail.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * File: Mail.cpp
3 | * Author: pro
4 | *
5 | * Created on 26. September 2013, 17:40
6 | */
7 |
8 | #include "Mail.h"
9 |
10 | Mail::Mail() {
11 | }
12 |
13 | Mail::Mail(const Mail& orig) {
14 | }
15 |
16 | Mail::~Mail() {
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/examples/README:
--------------------------------------------------------------------------------
1 | This directory contains utilities that might be useful to parties interested
2 | in toying with or deploying real-world IF-MAP solutions.
3 |
4 | dhcpd.conf - An example ISC DHCP IF-MAP enabled configuration.
5 | publish-ip-mac.pl - A helper script for ISC DHCP IF-MAP integration.
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailaccountconfig.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailaccountconfig (
2 | id INTEGER NOT NULL,
3 | service VARCHAR NOT NULL,
4 | name VARCHAR NOT NULL,
5 | value VARCHAR NOT NULL,
6 | PRIMARY KEY (id, service, name),
7 | FOREIGN KEY (id) REFERENCES mailaccounts(id));
8 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/missingancestors.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE missingancestors (
2 | messageid INTEGER PRIMARY KEY,
3 | subjectid INTEGER,
4 | state INTEGER DEFAULT 0,
5 | FOREIGN KEY (messageid) REFERENCES mailmessages(id),
6 | FOREIGN KEY (subjectid) REFERENCES mailsubjects(id));
7 |
--------------------------------------------------------------------------------
/Drupalmail/parser/3rdparty/Qtidy.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * File: Qtidy.cpp
3 | * Author: pro
4 | * Struzzo bello in fare le cose
5 | * Created on 13. Oktober 2013, 23:11
6 | */
7 |
8 | #include "Qtidy.h"
9 |
10 | Qtidy::Qtidy() {
11 | }
12 |
13 | Qtidy::Qtidy(const Qtidy& orig) {
14 | }
15 |
16 | Qtidy::~Qtidy() {
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/tidylib/version.h:
--------------------------------------------------------------------------------
1 | /* version information
2 |
3 | (c) 2006 (W3C) MIT, ERCIM, Keio University
4 | See tidy.h for the copyright notice.
5 |
6 | CVS Info :
7 |
8 | $Author: arnaud02 $
9 | $Date: 2006/04/13 16:27:44 $
10 | $Revision: 1.4 $
11 |
12 | */
13 |
14 | static const char release_date[] = "13 April 2006";
15 |
--------------------------------------------------------------------------------
/GmailHand/Mail.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: Mail.h
3 | * Author: pro
4 | *
5 | * Created on 26. September 2013, 17:40
6 | */
7 |
8 | #ifndef MAIL_H
9 | #define MAIL_H
10 |
11 | class Mail {
12 | public:
13 | Mail();
14 | Mail(const Mail& orig);
15 | virtual ~Mail();
16 | private:
17 |
18 | };
19 |
20 | #endif /* MAIL_H */
21 |
22 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailaccountfolders.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailaccountfolders (
2 | id INTEGER NOT NULL,
3 | foldertype INTEGER NOT NULL,
4 | folderid INTEGER NOT NULL,
5 | PRIMARY KEY (id, foldertype),
6 | FOREIGN KEY (id) REFERENCES mailaccounts(id),
7 | FOREIGN KEY (folderid) REFERENCES mailfolders(id));
8 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/certgen.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | cn=omapd
4 |
5 | if [ $1"X" != "X" ]; then
6 | cn=$1
7 | fi
8 |
9 | openssl req -x509 -new -newkey rsa:1024 -keyout server.key -out server.pem -nodes -subj /C=US/O=omapdServer/OU=OpenSource/CN=$cn/emailAddress=omapd@omapd.org -days 365
10 |
11 | openssl x509 -in server.pem -subject -noout
12 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailfolders-103-104.sqlite.sql:
--------------------------------------------------------------------------------
1 | UPDATE mailmessages SET parentfolderid=1 WHERE parentfolderid IN (2,3,4,5);
2 | UPDATE mailmessages SET previousparentfolderid=1 WHERE previousparentfolderid IN (2,3,4,5);
3 | DELETE FROM mailfolders WHERE id IN (2,3,4,5);
4 | UPDATE mailfolders SET displayname='Local Storage' WHERE id=1;
5 |
--------------------------------------------------------------------------------
/GmailHand/pwd.txt:
--------------------------------------------------------------------------------
1 | /Users/pro/project/version_sv
2 |
3 | /Users/pro/project/version_sv/GmailHand
4 |
5 | qmake -spec /usr/local/Qt4.8/mkspecs/macx-g++ -o Makefile GmailHand.pro
6 |
7 |
8 | http://qt-gmail-access.googlecode.com/svn/trunk/GmailHand/
9 | https://code.google.com/p/qt-gmail-access/
10 | http://qt-gmail-access.googlecode.com/svn/trunk/Gmailsend/
--------------------------------------------------------------------------------
/Drupalmail/parser/3rdparty/Qtidy.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: Qtidy.h
3 | * Author: pro
4 | *
5 | * Created on 13. Oktober 2013, 23:11
6 | */
7 |
8 | #ifndef QTIDY_H
9 | #define QTIDY_H
10 |
11 | class Qtidy {
12 | public:
13 | Qtidy();
14 | Qtidy(const Qtidy& orig);
15 | virtual ~Qtidy();
16 | private:
17 |
18 | };
19 |
20 | #endif /* QTIDY_H */
21 |
22 |
--------------------------------------------------------------------------------
/GmailHand/vario_controll.h:
--------------------------------------------------------------------------------
1 | #ifndef VARIO_CONTROLL_H
2 | #define VARIO_CONTROLL_H
3 |
4 | #include
5 |
6 |
7 |
8 |
9 |
10 | class Vario_Controll : public QObject
11 | {
12 | Q_OBJECT
13 | public:
14 | explicit Vario_Controll(QObject *parent = 0);
15 |
16 | signals:
17 |
18 | public slots:
19 |
20 | };
21 |
22 | #endif // VARIO_CONTROLL_H
23 |
--------------------------------------------------------------------------------
/GmailHand/drupal_journalist.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * File: drupal_journalist.cpp
3 | * Author: pro
4 | * Struzzo bello in fare le cose
5 | * Created on 3. Oktober 2013, 22:06
6 | */
7 |
8 | #include "drupal_journalist.h"
9 | #include "mime_standard.h"
10 |
11 | //// NetDrupalFile::NetDrupalFile() : chunk(""), mime("txt"), file("file.txt"), ext("txt"), uuid(57577585) {}
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/deletedmessages.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE deletedmessages(
2 | id INTEGER PRIMARY KEY NOT NULL,
3 | parentaccountid INTEGER NOT NULL,
4 | serveruid VARCHAR,
5 | frommailbox VARCHAR,
6 | parentfolderid INTEGER,
7 | FOREIGN KEY (parentaccountid) REFERENCES mailaccounts(id),
8 | FOREIGN KEY (parentfolderid) REFERENCES mailfolders(id));
9 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailaccounts-102-103.sqlite.sql:
--------------------------------------------------------------------------------
1 | UPDATE mailaccounts SET status = status | ( SELECT (1 << (max(statusbit) + 0)) FROM mailstatusflags WHERE context = 'accountstatus' ) WHERE type <> 3 AND type <> 5;
2 | UPDATE mailaccounts SET status = status | ( SELECT (1 << (max(statusbit) + 1)) FROM mailstatusflags WHERE context = 'accountstatus' ) WHERE (type == 0 OR type == 1);
3 |
--------------------------------------------------------------------------------
/Drupalmail/drupal/drupal_journalist.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * File: drupal_journalist.cpp
3 | * Author: pro
4 | * Struzzo bello in fare le cose
5 | * Created on 3. Oktober 2013, 22:06
6 | */
7 |
8 | #include "drupal_journalist.h"
9 | #include "mime_standard.h"
10 |
11 | //// NetDrupalFile::NetDrupalFile() : chunk(""), mime("txt"), file("file.txt"), ext("txt"), uuid(57577585) {}
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/document_editor_2/Readme.txt:
--------------------------------------------------------------------------------
1 |
2 | To debug odt file follow
3 | http://fop-miniscribus.googlecode.com/svn/trunk/OO_Widged/debugger/debugger.pro
4 | or build
5 | svn co http://fop-miniscribus.googlecode.com/svn/trunk/OO_Widged/ OO_Widged
6 |
7 | it show the xml contenent and or xml error.
8 |
9 | ...
10 |
11 | Question ppkciz (at) gmail.com + subjekt XXXX_OO_Widged_QT4.5XXXX
12 |
--------------------------------------------------------------------------------
/tidylib/iconvtc.h:
--------------------------------------------------------------------------------
1 | #ifndef __ICONVTC_H__
2 | #define __ICONVTC_H__
3 | #ifdef TIDY_ICONV_SUPPORT
4 |
5 | /* iconvtc.h -- Interface to iconv transcoding routines
6 |
7 | (c) 1998-2003 (W3C) MIT, ERCIM, Keio University
8 | See tidy.h for the copyright notice.
9 |
10 | $Id: iconvtc.h,v 1.1 2003/04/28 22:59:41 hoehrmann Exp $
11 | */
12 |
13 |
14 | #endif /* TIDY_ICONV_SUPPORT */
15 | #endif /* __ICONVTC_H__ */
16 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailmessageidentifiers-100-101.sqlite.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE mailmessageidentifiers RENAME TO wasmailmessageidentifiers;
2 |
3 | CREATE TABLE mailmessageidentifiers(
4 | id INTEGER,
5 | identifier VARCHAR,
6 | FOREIGN KEY (id) REFERENCES mailmessages(id));
7 |
8 | INSERT INTO mailmessageidentifiers (id, identifier)
9 | SELECT id, identifier FROM wasmailmessageidentifiers;
10 |
11 | DROP TABLE wasmailmessageidentifiers;
12 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | qt-gmail-access
2 | ===============
3 |
4 | Imap handshake ssl QSslSocket & parse Mail
5 |
6 |
7 |
8 | GmailHand - get remote mail from gmail by keyword on console.
9 |
10 | Gmailsend - Sample to send mail mime over QT5 code.
11 |
12 | xsltwaydoc - Convert docx odt pdf document to full html variant XSLT.
13 |
14 | Drupalmail - pending work to send mail and attachment inside drupal cms.
15 |
16 | tidylib - lib to parse html or xml to use on qt.
17 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/plugins/RAMHashTables/RAMHashTables.pro:
--------------------------------------------------------------------------------
1 | QT += core
2 | QT -= gui
3 |
4 | TARGET = $$qtLibraryTarget(RAMHashTables)
5 | TEMPLATE = lib
6 | CONFIG += plugin
7 | CONFIG += debug
8 |
9 | DESTDIR = ../
10 |
11 | INCLUDEPATH += ../..
12 |
13 | SOURCES += mapgraphplugin.cpp \
14 | ../../identifier.cpp \
15 | ../../metadata.cpp
16 |
17 | HEADERS += mapgraphplugin.h \
18 | ../../identifier.h \
19 | ../../metadata.h
20 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailfolders.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailfolders (
2 | id INTEGER PRIMARY KEY NOT NULL,
3 | name VARCHAR(255) NOT NULL,
4 | parentid INTEGER,
5 | parentaccountid INTEGER,
6 | status INTEGER,
7 | displayname VARCHAR(255),
8 | servercount INTEGER,
9 | serverunreadcount INTEGER,
10 | serverundiscoveredcount INTEGER,
11 | FOREIGN KEY (parentaccountid) REFERENCES mailaccounts(id),
12 | FOREIGN KEY (parentid) REFERENCES mailfolder(id));
13 |
14 |
--------------------------------------------------------------------------------
/tidylib/charsets.h:
--------------------------------------------------------------------------------
1 | /* charsets.h -- character set information and mappings
2 |
3 | (c) 1998-2003 (W3C) MIT, ERCIM, Keio University
4 | See tidy.h for the copyright notice.
5 |
6 | $Id: charsets.h,v 1.1 2003/04/28 04:45:02 hoehrmann Exp $
7 | */
8 |
9 | uint GetEncodingIdFromName(ctmbstr name);
10 | uint GetEncodingIdFromCodePage(uint cp);
11 | uint GetEncodingCodePageFromName(ctmbstr name);
12 | uint GetEncodingCodePageFromId(uint id);
13 | ctmbstr GetEncodingNameFromId(uint id);
14 | ctmbstr GetEncodingNameFromCodePage(uint cp);
15 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailaccounts-105-106.sqlite.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE mailaccounts RENAME TO wasmailaccounts;
2 |
3 | CREATE TABLE mailaccounts(
4 | id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
5 | type INTEGER NOT NULL,
6 | name VARCHAR,
7 | emailaddress VARCHAR,
8 | status INTEGER,
9 | signature VARCHAR);
10 |
11 | INSERT INTO mailaccounts (id, type, name, emailaddress, status, signature)
12 | SELECT id, type, name, emailaddress, status, signature FROM wasmailaccounts;
13 |
14 | DROP TABLE wasmailaccounts;
15 |
--------------------------------------------------------------------------------
/Gmailsend/gmailsms.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: sample to send mail on smtp from gmail
3 | //
4 | // Description:
5 | // SMTP Encrypted sending mail attachment & mime chunk Editmail->document()
6 | // ( QTextDocument ) fill from image e html tag & style color full mime mail.
7 | //
8 | // Author: Peter Hohl , 19.9.2013
9 | // http://www.freeroad.ch/
10 | // Copyright: See COPYING file that comes with this distribution
11 | //
12 | //
13 |
14 | #include "gmailsms.h"
15 |
16 | gmailsms::gmailsms(QObject *parent) :
17 | QObject(parent) {
18 | }
19 |
--------------------------------------------------------------------------------
/console_doc/pdf2xml.dtd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
12 |
23 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/qtopiamail_icons.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | pics/icons/14x14/sendmail.png
4 | pics/icons/16x16/mail_get.png
5 | pics/flag_normal.png
6 | pics/flag_unread.png
7 | pics/flag_toget.png
8 | pics/flag_tosend.png
9 | pics/flag_unfinished.png
10 | pics/flag_removed.png
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tidylib/entities.h:
--------------------------------------------------------------------------------
1 | #ifndef __ENTITIES_H__
2 | #define __ENTITIES_H__
3 |
4 | /* entities.h -- recognize character entities
5 |
6 | (c) 1998-2003 (W3C) MIT, ERCIM, Keio University
7 | See tidy.h for the copyright notice.
8 |
9 | CVS Info :
10 |
11 | $Author: hoehrmann $
12 | $Date: 2003/05/25 03:22:20 $
13 | $Revision: 1.6 $
14 |
15 | */
16 |
17 | #include "forward.h"
18 |
19 | /* entity starting with "&" returns zero on error */
20 | uint EntityCode( ctmbstr name, uint versions );
21 | ctmbstr EntityName( uint charCode, uint versions );
22 | Bool EntityInfo( ctmbstr name, Bool isXml, uint* code, uint* versions );
23 |
24 | #endif /* __ENTITIES_H__ */
25 |
--------------------------------------------------------------------------------
/tidylib/win32tc.h:
--------------------------------------------------------------------------------
1 | #ifndef __WIN32TC_H__
2 | #define __WIN32TC_H__
3 | #ifdef TIDY_WIN32_MLANG_SUPPORT
4 |
5 | /* win32tc.h -- Interface to Win32 transcoding routines
6 |
7 | (c) 1998-2003 (W3C) MIT, ERCIM, Keio University
8 | See tidy.h for the copyright notice.
9 |
10 | $Id: win32tc.h,v 1.1 2003/04/25 04:26:12 hoehrmann Exp $
11 | */
12 |
13 | uint Win32MLangGetCPFromName(ctmbstr encoding);
14 | Bool Win32MLangInitInputTranscoder(StreamIn * in, uint wincp);
15 | void Win32MLangUninitInputTranscoder(StreamIn * in);
16 | int Win32MLangGetChar(byte firstByte, StreamIn * in, uint * bytesRead);
17 |
18 | #endif /* TIDY_WIN32_MLANG_SUPPORT */
19 | #endif /* __WIN32TC_H__ */
20 |
--------------------------------------------------------------------------------
/Gmailsend/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | NSPrincipalClass
6 | NSApplication
7 | CFBundleIconFile
8 | dmail.icns
9 | CFBundlePackageType
10 | APPL
11 | CFBundleGetInfoString
12 | Created by Qt/QMake
13 | CFBundleSignature
14 | !Rch
15 | CFBundleExecutable
16 | gmailsend
17 | CFBundleIdentifier
18 | Peter Hohl
19 | NOTE
20 | www.freeroad.ch
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Gmailsend/gmailsms.h:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: sample to send mail on smtp from gmail
3 | //
4 | // Description:
5 | // SMTP Encrypted sending mail attachment & mime chunk Editmail->document()
6 | // ( QTextDocument ) fill from image e html tag & style color full mime mail.
7 | //
8 | // Author: Peter Hohl , 19.9.2013
9 | // http://www.freeroad.ch/
10 | // Copyright: See COPYING file that comes with this distribution
11 | //
12 | //
13 |
14 | #ifndef GMAILSMS_H
15 | #define GMAILSMS_H
16 |
17 | #include
18 |
19 | class gmailsms : public QObject {
20 | Q_OBJECT
21 | public:
22 | explicit gmailsms(QObject *parent = 0);
23 |
24 | signals:
25 |
26 | public slots:
27 |
28 | };
29 |
30 | #endif // GMAILSMS_H
31 |
--------------------------------------------------------------------------------
/console_doc/qt5.pro:
--------------------------------------------------------------------------------
1 | ######################################################################
2 | # Automatically generated by qmake (3.0) Do. Nov. 14 09:57:36 2013
3 | ######################################################################
4 |
5 | TEMPLATE = app
6 | TARGET = dconv
7 | CONFIG -= app_bundle
8 |
9 | LANGUAGE = C++
10 | CONFIG += qt console
11 | CONFIG += warn_off
12 |
13 | QT += core network xml widgets xmlpatterns
14 |
15 | unix {
16 | TARGET = dconv
17 | BINDIR = /usr/bin
18 | target.path = $$BINDIR
19 | INSTALLS += target
20 | }
21 |
22 | INCLUDEPATH += doclib
23 | LIBS += lib/libdconverter.a
24 |
25 |
26 | DESTDIR = ./
27 | cache()
28 | LIBS += -lz
29 |
30 | INCLUDEPATH += . doclib
31 |
32 | SOURCES += main.cpp
33 |
--------------------------------------------------------------------------------
/GmailHand/drupal_journalist.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: drupal_journalist.h
3 | * Author: pro
4 | *
5 | * Created on 3. Oktober 2013, 22:06
6 | */
7 |
8 | #ifndef DRUPAL_JOURNALIST_H
9 | #define DRUPAL_JOURNALIST_H
10 |
11 | #include
12 | #include
13 | #include
14 | #include
15 | #include
16 | #include "mime_standard.h"
17 | #include
18 | //// #include
19 | #include
20 | #include
21 | #include
22 |
23 | #ifdef DRUPAL_REMOTE
24 | const int sender_host_yes = 1;
25 | #else
26 | const int sender_host_yes = 0;
27 | #endif
28 |
29 |
30 | const QString DrupalHost = "http://www.freeroad.ch/";
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | #endif /* DRUPAL_JOURNALIST_H */
39 |
40 |
--------------------------------------------------------------------------------
/Drupalmail/drupal/drupal_journalist.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: drupal_journalist.h
3 | * Author: pro
4 | *
5 | * Created on 3. Oktober 2013, 22:06
6 | */
7 |
8 | #ifndef DRUPAL_JOURNALIST_H
9 | #define DRUPAL_JOURNALIST_H
10 |
11 | #include
12 | #include
13 | #include
14 | #include
15 | #include
16 | #include "mime_standard.h"
17 | #include
18 | //// #include
19 | #include
20 | #include
21 | #include
22 |
23 | #ifdef DRUPAL_REMOTE
24 | const int sender_host_yes = 1;
25 | #else
26 | const int sender_host_yes = 0;
27 | #endif
28 |
29 |
30 | const QString DrupalHost = "http://www.freeroad.ch/";
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | #endif /* DRUPAL_JOURNALIST_H */
39 |
40 |
--------------------------------------------------------------------------------
/console_doc/doclib/pdfhtml.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: pdfhtml.h
3 | * Author: pro
4 | *
5 | * Created on 14. November 2013, 18:49
6 | */
7 |
8 | #ifndef PDFHTML_H
9 | #define PDFHTML_H
10 |
11 | #include "kzip.h"
12 | #include "config.h"
13 | #include "document.h"
14 |
15 |
16 |
17 | class PortableDocument : public Document {
18 | public:
19 | PortableDocument( const QString docfilename );
20 | virtual ~PortableDocument();
21 | private:
22 | bool is_loading;
23 | void ScanImageHtml(); // on html insert image
24 | void ScannerImage(); /// on cache dir read image
25 | QByteArray docitem(const QString archive);
26 | QString EmbeddedImage(const QString key);
27 | QMap pdfimagelist;
28 | QString HTMLSTREAM;
29 | };
30 |
31 | #endif /* PDFHTML_H */
32 |
33 |
--------------------------------------------------------------------------------
/console_doc/doclib/doclib.pro:
--------------------------------------------------------------------------------
1 | ######################################################################
2 | # Automatically generated by qmake (3.0) Mo. Nov. 18 20:33:25 2013
3 | ######################################################################
4 |
5 | TEMPLATE = lib
6 | TARGET = dconverter
7 | INCLUDEPATH += .
8 |
9 | CONFIG += qt release warn_off staticlib
10 | LIBS += -lz
11 |
12 | DESTDIR += ../lib
13 | QT += xml
14 | QT += network
15 | QT += core
16 | QT += xmlpatterns
17 |
18 | # Input
19 | HEADERS += config.h \
20 | document.h \
21 | docxzip.h \
22 | kzip.h \
23 | odtzip.h \
24 | pdfhtml.h \
25 | rtfhtml.h
26 | SOURCES += document.cpp \
27 | docxzip.cpp \
28 | kzip.cpp \
29 | odtzip.cpp \
30 | pdfhtml.cpp \
31 | rtfhtml.cpp
--------------------------------------------------------------------------------
/console_doc/doclib/docxzip.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: docxzip.h
3 | * Author: pro
4 | *
5 | * Created on 12. November 2013, 22:54
6 | */
7 |
8 | #ifndef DOCXZIP_H
9 | #define DOCXZIP_H
10 |
11 | #include "kzip.h"
12 | #include "config.h"
13 | #include "document.h"
14 |
15 | class DocxZipHandler : public Document {
16 | public:
17 | DocxZipHandler( const QString docfilename );
18 | QString html();
19 | bool load() {
20 | return is_loading;
21 | }
22 | virtual ~DocxZipHandler();
23 | private:
24 | QByteArray docitem( const QString archive );
25 | bool docx_validator(const QStringList entries);
26 | void scanimage();
27 | QString read_docx_index(QByteArray xml, int findertype, const QString Xid);
28 | bool is_loading;
29 | QMap corefile;
30 | QString HTMLSTREAM;
31 |
32 | };
33 |
34 | #endif /* DOCXZIP_H */
35 |
36 |
--------------------------------------------------------------------------------
/document_editor_2/src/main.cpp:
--------------------------------------------------------------------------------
1 | #include "textedit.h"
2 | #include
3 | #include "os_application.h"
4 | #include "allconfig.h"
5 |
6 | //// /Users/pro/Desktop/Qt_code/document_editor_2/
7 |
8 | #if defined _COMPOSE_STATIC_
9 | #include
10 | #if defined _USE_qjpeg
11 |
12 | Q_IMPORT_PLUGIN(qjpeg)
13 | #endif
14 | #if defined _USE_qmng
15 | Q_IMPORT_PLUGIN(qmng)
16 | #endif
17 | #if defined _USE_qgif
18 | Q_IMPORT_PLUGIN(qgif)
19 | #endif
20 | #if defined _USE_qtiff
21 | Q_IMPORT_PLUGIN(qtiff)
22 | #endif
23 | #endif
24 |
25 | int main(int argc, char *argv[]) {
26 | ////Q_INIT_RESOURCE("textedit");
27 | //////Q_INIT_RESOURCE(osApplication); /* if you have icon and file osApplication.qrc to load before*/
28 | OS_application a(argc, argv);
29 | a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
30 | return a.exec();
31 | }
--------------------------------------------------------------------------------
/xsltwaydoc/XX.pro:
--------------------------------------------------------------------------------
1 | ######################################################################
2 | # Automatically generated by qmake (2.00a) sab 23. set 20:35:35 2006
3 | ######################################################################
4 |
5 |
6 | TEMPLATE = app
7 | TARGET = xx
8 | DEPENDPATH += . odtdocxlib
9 | INCLUDEPATH += . odtdocxlib
10 |
11 | OBJECTS_DIR = zz_build
12 | MOC_DIR = zz_build
13 |
14 | ### win32:debug { CONFIG += console }
15 | LANGUAGE = C++
16 | CONFIG += qt debug console
17 | CONFIG += warn_off
18 | QT += webkit
19 |
20 | ###########
21 | QT += xml network
22 | QT += xmlpatterns
23 | CONFIG -= app_bundle
24 |
25 | LIBS += -lz
26 | win32:LIBS += -luser32
27 |
28 | DESTDIR = ./
29 |
30 | HEADERS += odtdocxlib/kzip.h odtdocxlib/config.h odtdocxlib/odtzip.h
31 | FORMS +=
32 | SOURCES += main.cpp odtdocxlib/kzip.cpp odtdocxlib/odtzip.cpp
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/Gmailsend/README.txt:
--------------------------------------------------------------------------------
1 | Miglioramenti sono sempre benvenuti e accettati.
2 | Verbesserung sind immer willkommen.
3 | I am happy to read on incoming mail, revision of this code…
4 |
5 | 17.okt 2013 11.00
6 |
7 |
8 | qmake -spec /usr/local/Qt4.8/mkspecs/macx-g++ -o Makefile gmailsend.pro
9 | http://iconverticons.com/online/ icon make
10 |
11 |
12 | depndency from this app
13 | otool -L gmailsend.app/Contents/MacOs/gmailsend
14 |
15 | cd /Users/pro/project/github/Gmailsend/ && otool -L gmailsend.app/Contents/MacOs/gmailsend
16 |
17 | svn export http://qxhtml-edit.googlecode.com/svn/trunk/htmledit/ htmledit
18 |
19 | git help:
20 | https://inchoo.net/tools-frameworks/basic-git-usage-from-console/
21 |
22 |
23 | git push
24 | git rm -rf dir or file
25 | git commit -m "comment"
26 | git add file or dir
27 |
28 | cd os
29 | /Users/pro/project/github/Drupalmail/
30 |
31 | current git repo on:
32 | https://github.com/pehohlva/qt-gmail-access
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/README:
--------------------------------------------------------------------------------
1 | omapd is an open source implementation of the IF-MAP v1.1 specification
2 | published by the Trusted Computing Group [1].
3 |
4 | To build omapd, you will need a Qt development environment [2]. Initial
5 | development of omapd was built against Qt v4.5.2. Development as of
6 | omapd-0.3.0 is using Qt v4.6.2, and minimum of Qt v4.6.0 is required because of
7 | the QXmlStream classes. As of omapd-0.7.0, Qt v4.8 is required because of
8 | the QSsl::SecureProtocols constant, which makes it much easier to disable
9 | SSLv2.
10 |
11 | 1. Change directory into the plugins/RAMHashTables directory,
12 | run qmake and make.
13 | 2. Run qmake on the omapd.pro file, then run make.
14 | 3. Create a server certificate, or use the certgen.sh script
15 | 4. Run omapd
16 |
17 | References
18 | ----------
19 | [1] http://www.trustedcomputinggroup.org/resources/tnc_ifmap_binding_for_soap_specification
20 | [2] http://qt.digia.com/Product
21 |
--------------------------------------------------------------------------------
/Drupalmail/coreapp/handler_net.h:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: Get Mail as search result by subject & date since imap.
3 | //
4 | // Description:
5 | // Target to having a console app to filter & get mail to insert on drupal as new node.
6 | //
7 | // Author: Peter Hohl , 19.9.2013
8 | // http://www.freeroad.ch/
9 | // Copyright: See COPYING file that comes with this distribution
10 |
11 | #ifndef HANDLER_NET_H
12 | #define HANDLER_NET_H
13 |
14 | #include
15 | #include
16 | #include "net_starterimap.h"
17 | #include "net_imap_standard.h"
18 | #include "parser_config.h"
19 |
20 |
21 | class Handler_Net : public QObject
22 | {
23 | Q_OBJECT
24 | public:
25 | explicit Handler_Net(QObject *parent = 0);
26 |
27 | signals:
28 | void Full_Quit();
29 | public slots:
30 | void Init_Parse( const int uid );
31 | void Close_Imap();
32 | void NextComand();
33 | private:
34 | Net_StarterImap *imap;
35 |
36 | };
37 |
38 | #endif // HANDLER_NET_H
39 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/resources/mailmessages.sqlite.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE mailmessages (
2 | id INTEGER PRIMARY KEY NOT NULL,
3 | type INTEGER NOT NULL,
4 | parentfolderid INTEGER NOT NULL,
5 | previousparentfolderid INTEGER,
6 | sender VARCHAR,
7 | recipients VARCHAR,
8 | subject VARCHAR,
9 | stamp TIMESTAMP,
10 | status INTEGER,
11 | parentaccountid INTEGER,
12 | frommailbox VARCHAR,
13 | mailfile VARCHAR,
14 | serveruid VARCHAR,
15 | size INTEGER,
16 | contenttype INTEGER,
17 | responseid INTEGER,
18 | responsetype INTEGER,
19 | receivedstamp TIMESTAMP,
20 | FOREIGN KEY (parentfolderid) REFERENCES mailfolders(id),
21 | FOREIGN KEY (parentaccountid) REFERENCES mailaccounts(id));
22 |
23 | CREATE INDEX parentfolderid_idx ON mailmessages("parentfolderid");
24 | CREATE INDEX parentaccountid_idx ON mailmessages("parentaccountid");
25 | CREATE INDEX frommailbox_idx ON mailmessages("frommailbox");
26 | CREATE INDEX stamp_idx ON mailmessages("stamp");
27 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/omapd.pro:
--------------------------------------------------------------------------------
1 | QT += network \
2 | xmlpatterns
3 | QT -= gui
4 | TARGET = omapd
5 | CONFIG += console
6 | CONFIG += debug
7 | CONFIG -= app_bundle
8 | TEMPLATE = app
9 | SOURCES += main.cpp \
10 | server.cpp \
11 | identifier.cpp \
12 | metadata.cpp \
13 | mapsessions.cpp \
14 | omapdconfig.cpp \
15 | maprequest.cpp \
16 | mapresponse.cpp \
17 | subscription.cpp \
18 | clienthandler.cpp \
19 | clientparser.cpp \
20 | mapclient.cpp \
21 | clientconfiguration.cpp \
22 | managementserver.cpp \
23 | json.cpp
24 | HEADERS += server.h \
25 | identifier.h \
26 | metadata.h \
27 | mapsessions.h \
28 | omapdconfig.h \
29 | maprequest.h \
30 | mapresponse.h \
31 | subscription.h \
32 | mapgraphinterface.h \
33 | server.h \
34 | clienthandler.h \
35 | clientparser.h \
36 | mapclient.h \
37 | clientconfiguration.h \
38 | managementserver.h \
39 | json.h
40 | INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib
41 |
--------------------------------------------------------------------------------
/tidylib/include/fileio.h:
--------------------------------------------------------------------------------
1 | #ifndef __FILEIO_H__
2 | #define __FILEIO_H__
3 |
4 | /** @file fileio.h - does standard C I/O
5 |
6 | Implementation of a FILE* based TidyInputSource and
7 | TidyOutputSink.
8 |
9 | (c) 1998-2006 (W3C) MIT, ERCIM, Keio University
10 | See tidy.h for the copyright notice.
11 |
12 | CVS Info:
13 | $Author: arnaud02 $
14 | $Date: 2006/01/25 14:17:34 $
15 | $Revision: 1.6 $
16 | */
17 |
18 | #include "buffio.h"
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 | /** Allocate and initialize file input source */
24 | void TIDY_CALL initFileSource( TidyInputSource* source, FILE* fp );
25 |
26 | /** Free file input source */
27 | void TIDY_CALL freeFileSource( TidyInputSource* source, Bool closeIt );
28 |
29 | /** Initialize file output sink */
30 | void TIDY_CALL initFileSink( TidyOutputSink* sink, FILE* fp );
31 |
32 | /* Needed for internal declarations */
33 | void TIDY_CALL filesink_putByte( void* sinkData, byte bv );
34 |
35 | #ifdef __cplusplus
36 | }
37 | #endif
38 | #endif /* __FILEIO_H__ */
39 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/mapgraphinterface.h:
--------------------------------------------------------------------------------
1 | #ifndef MAPGRAPHINTERFACE_H
2 | #define MAPGRAPHINTERFACE_H
3 |
4 | #include "identifier.h"
5 | #include "metadata.h"
6 | #include "maprequest.h"
7 |
8 | class MapGraphInterface
9 | {
10 | public:
11 | virtual ~MapGraphInterface() {}
12 |
13 | virtual void dumpMap() = 0;
14 | virtual void clearMap() = 0;
15 |
16 | virtual void addMeta(Link key, bool isLink, QList publisherMeta, QString publisherId) = 0;
17 | virtual bool deleteMetaWithPublisherId(QString pubId, QHash > *idMetaDeleted, QHash > *linkMetaDeleted, bool sessionMetaOnly = false) = 0;
18 | virtual void replaceMeta(Link link, bool isLink, QList newMetaList = QList()) = 0;
19 |
20 | // List of all identifiers that targetId is on a link with
21 | virtual QList linksTo(Id targetId) = 0;
22 |
23 | virtual QList metaForLink(Link link) = 0;
24 | virtual QList metaForId(Id id) = 0;
25 |
26 | virtual void setDebug(bool debug) = 0;
27 | };
28 |
29 | Q_DECLARE_INTERFACE(MapGraphInterface, "org.omapd.Plugin.MapGraphInterface/1.0");
30 |
31 | #endif // MAPGRAPHINTERFACE_H
32 |
33 |
--------------------------------------------------------------------------------
/tidylib/forward.h:
--------------------------------------------------------------------------------
1 | #ifndef __FORWARD_H__
2 | #define __FORWARD_H__
3 |
4 | /* forward.h -- Forward declarations for major Tidy structures
5 |
6 | (c) 1998-2003 (W3C) MIT, ERCIM, Keio University
7 | See tidy.h for the copyright notice.
8 |
9 | CVS Info :
10 |
11 | $Author: creitzel $
12 | $Date: 2003/03/19 18:37:44 $
13 | $Revision: 1.3 $
14 |
15 | Avoids many include file circular dependencies.
16 |
17 | Try to keep this file down to the minimum to avoid
18 | cross-talk between modules.
19 |
20 | Header files include this file. C files include tidy-int.h.
21 |
22 | */
23 |
24 | #include "platform.h"
25 | #include "tidy.h"
26 |
27 | struct _StreamIn;
28 | typedef struct _StreamIn StreamIn;
29 |
30 | struct _StreamOut;
31 | typedef struct _StreamOut StreamOut;
32 |
33 | struct _TidyDocImpl;
34 | typedef struct _TidyDocImpl TidyDocImpl;
35 |
36 |
37 | struct _Dict;
38 | typedef struct _Dict Dict;
39 |
40 | struct _Attribute;
41 | typedef struct _Attribute Attribute;
42 |
43 | struct _AttVal;
44 | typedef struct _AttVal AttVal;
45 |
46 | struct _Node;
47 | typedef struct _Node Node;
48 |
49 | struct _IStack;
50 | typedef struct _IStack IStack;
51 |
52 | struct _Lexer;
53 | typedef struct _Lexer Lexer;
54 |
55 |
56 |
57 | #endif /* __FORWARD_H__ */
58 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/examples/dhcpd.conf:
--------------------------------------------------------------------------------
1 | ddns-update-style none;
2 |
3 | authoritative;
4 |
5 | default-lease-time 30;
6 |
7 | max-lease-time 30;
8 |
9 | log-facility local7;
10 |
11 | subnet 10.0.0.0 netmask 255.255.255.0 {
12 | option subnet-mask 255.255.255.0;
13 | option routers 10.0.0.1;
14 | option domain-name-servers 8.8.8.8, 8.8.4.4;
15 | range 10.0.0.2 10.0.0.254;
16 |
17 | on commit {
18 | set clientIP = binary-to-ascii(10, 8, ".", leased-address);
19 | set clientMAC = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
20 |
21 | execute("/usr/local/libexec/publish-ip-mac.pl", "commit", clientIP, clientMAC);
22 | }
23 |
24 | on release {
25 | set clientIP = binary-to-ascii(10, 8, ".", leased-address);
26 | set clientMAC = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
27 |
28 | execute("/usr/local/libexec/publish-ip-mac.pl", "release", clientIP, clientMAC);
29 | }
30 |
31 | on expiry {
32 | set clientIP = binary-to-ascii(10, 8, ".", leased-address);
33 |
34 | if(exists agent.remote-id) {
35 | set clientMAC = binary-to-ascii(16, 8, ":", substring(option agent.remote-id, 2, 6));
36 |
37 | execute("/usr/local/libexec/publish-ip-mac.pl", "expiry", clientIP, clientMAC);
38 | } else {
39 | execute("/usr/local/libexec/publish-ip-mac.pl", "expiry", clientIP);
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Drupalmail/coreapp/client_session.h:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: Get Mail as search result by subject & date since imap.
3 | //
4 | // Description:
5 | // Target to having a console app to filter & get mail to insert on drupal as new node.
6 | //
7 | // Author: Peter Hohl , 19.9.2013
8 | // http://www.freeroad.ch/
9 | // Copyright: See COPYING file that comes with this distribution
10 |
11 | #ifndef CLIENT_SESSION_H
12 | #define CLIENT_SESSION_H
13 | #include
14 | #include
15 | #include "parser_utils.h"
16 | #include "net_starterimap.h"
17 | #include "net_imap_standard.h"
18 | #include "parser_config.h"
19 |
20 |
21 |
22 |
23 | class MailSession{
24 |
25 | public :
26 | static MailSession * instance();
27 | QString subject() {
28 | return c_subject; /// current stream!!!
29 | }
30 | QString from() {
31 | return c_from; /// current stream!!!
32 | }
33 | bool register_header(QString block , const int uid , bool rec = true );
34 | QString File_Fromuid(const int uid ) const;
35 | ~MailSession();
36 |
37 | private:
38 | QHash mailref;
39 | MailSession();
40 | void register_mail(QString block);
41 | static MailSession* st_;
42 | QStringList MailList_A;
43 | QString c_subject;
44 | QString c_from;
45 |
46 | };
47 |
48 |
49 |
50 | #endif /* CLIENT_SESSION_H */
51 |
52 |
--------------------------------------------------------------------------------
/Gmailsend/box.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | dmail.icns
4 | images/format-indent-more.png
5 | images/format-justify-center.png
6 | images/format-justify-fill.png
7 | images/format-justify-left.png
8 | images/format-justify-right.png
9 | images/format-text-bold.png
10 | images/format-text-italic.png
11 | images/format-text-strikethrough.png
12 | images/format-text-underline.png
13 | images/image-x-generic.png
14 | images/insert-html.png
15 | images/list-add.png
16 | images/list-remove.png
17 | images/numbered-list.png
18 | images/bulleted-list.png
19 | images/document-new.png
20 | images/document-open.png
21 | images/document-save-as.png
22 | images/document-save.png
23 | images/edit-copy.png
24 | images/edit-cut.png
25 | images/edit-paste.png
26 | images/edit-redo.png
27 | images/edit-select-all.png
28 | images/edit-undo.png
29 | images/format-indent-less.png
30 | images/text-html.png
31 |
32 |
33 |
--------------------------------------------------------------------------------
/GmailHand/GmailHand.pro:
--------------------------------------------------------------------------------
1 | #-------------------------------------------------
2 | # d /Users/pro/project/GmailHand/
3 | # Project created by QtCreator 2013-09-19T14:20:54
4 | # qmake -spec /usr/local/Qt4.8/mkspecs/macx-g++ -o Makefile GmailHand.pro
5 | # cd /Users/pro/project/version_sv/GmailHand
6 | #-------------------------------------------------
7 |
8 | QT += core core network xml
9 | QT -= gui
10 |
11 | TARGET = getmesg
12 | CONFIG += debug
13 | CONFIG += qt console x86_64
14 | CONFIG -= app_bundle
15 | TEMPLATE = app
16 |
17 | CONFIG += warn_on \
18 | qt \
19 | silent \
20 | thread
21 |
22 | LIBS += -lz
23 |
24 | DEFINES += MY_SOCKET_DEBUG
25 |
26 |
27 |
28 | DEFINES += DEFLATE_PLAY_YES
29 | DEFINES += DRUPAL_REMOTE
30 | # DEFINES += RETRYCASE_PUT_TRASH
31 |
32 | macx {
33 | # DEFINES += USE_FANCY_MATCH_ALGORITHM
34 | # mac core native function full window size on widget ??
35 | LIBS += -framework CoreFoundation
36 | LIBS += -framework IOKit
37 | }
38 |
39 | SOURCES += main.cpp \
40 | net_starterimap.cpp \
41 | drupal_journalist.cpp \
42 | drupal_journalist.cpp \
43 | net_imap_standard.cpp \
44 | parser_eml.cpp \
45 | mail_handler.cpp
46 |
47 | HEADERS += \
48 | net_starterimap.h \
49 | net_imap_standard.h \
50 | drupal_journalist.h \
51 | parser_eml.h \
52 | mime_standard.h \
53 | drupal_journalist.h \
54 | mail_handler.h
55 |
56 | MOC_DIR = .moc
57 | OBJECTS_DIR = .obj
58 | UI_DIR = .ui
59 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/managementserver.h:
--------------------------------------------------------------------------------
1 | /*
2 | managementserver.h: Declaration of ManagementServer class
3 |
4 | Copyright (C) 2013 Sarab D. Mattes
5 |
6 | This file is part of omapd.
7 |
8 | omapd is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | omapd is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with omapd. If not, see .
20 | */
21 |
22 | #ifndef MANAGEMENTSERVER_H
23 | #define MANAGEMENTSERVER_H
24 |
25 | #include
26 | #include
27 | #include "mapgraphinterface.h"
28 |
29 | #define MANAGEMENT_MSG_MAX_LENGTH 1024
30 |
31 | class ManagementServer : public QTcpServer
32 | {
33 | Q_OBJECT
34 | public:
35 | explicit ManagementServer(MapGraphInterface *mapGraph, QObject *parent = 0);
36 | bool startListening();
37 |
38 | signals:
39 |
40 | private slots:
41 | void handleMgmtConnection();
42 | void readMgmtRequest();
43 |
44 | private:
45 | OmapdConfig* _omapdConfig;
46 | MapGraphInterface* _mapGraph;
47 | };
48 |
49 | #endif // MANAGEMENTSERVER_H
50 |
--------------------------------------------------------------------------------
/document_editor_2/config.pri:
--------------------------------------------------------------------------------
1 | #Require at least Qt 4.4.5
2 | QT_VERSION = $$[QT_VERSION]
3 | QT_VERSION = $$split(QT_VERSION, ".")
4 | QT_VER_MAJ = $$member(QT_VERSION, 0)
5 | QT_VER_MIN = $$member(QT_VERSION, 1)
6 | QT_VER_PAT = $$member(QT_VERSION, 2)
7 |
8 | message(version asplit $$QT_VERSION )
9 | message(version bsplit $$QT_VER_MAJ )
10 | message(version csplit $$QT_VER_MIN )
11 | message(version dsplit $$QT_VER_PAT )
12 |
13 |
14 | #### discovery qt5 or qt4
15 | equals(QT_VER_MAJ,5) {
16 | #### qt5 fix /Users/pro/qt/qt5lang/5.1.1/clang_64/include
17 | #### cache()
18 | LOCALQTDIR = /Users/pro/qt/qt51/qtbase/include
19 | LOCALQTDIR55555555 = /Users/pro/qt/qt5lang/5.1.1/clang_64/include
20 | DEPENDPATH += $$LOCALQTDIR
21 | INCLUDEPATH += $$LOCALQTDIR
22 | #### if need!!!
23 | DEFINES += _HAVING_NEW_TEXTDOCUMENT_
24 | QT += printsupport
25 | DEFINES += _HAVEPRINTSUPPORTFLAG_
26 | message(Use qt5 from $$LOCALQTDIR config.pri setting )
27 | }
28 |
29 | equals(QT_VER_MAJ,4) {
30 | #### http://www.qtcentre.org/wiki/index.php?title=Undocumented_qmake
31 | #### qt4 fix lessThan << minore
32 | message(Use qt4 setting edit config.pri )
33 | DEFINES += _QT4PRINTERSUPPORT_
34 | }
35 |
36 |
37 | win32 {
38 | ########## window no pwd #############
39 | BUILD_TREE_PATH = $$PWD
40 | message(Window path $$BUILD_TREE_PATH)
41 | }
42 |
43 |
44 | unix {
45 | BUILD_TREE_PATH = $$PWD
46 | message(Unix path $$BUILD_TREE_PATH)
47 | }
48 |
49 | macx {
50 | BUILD_TREE_PATH = $$PWD
51 | message(Mac path $$BUILD_TREE_PATH)
52 | }
--------------------------------------------------------------------------------
/Drupalmail/main.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: Get Mail as search result by subject & date since imap.
3 | //
4 | // Description:
5 | // Target to having a console app to filter & get mail to insert on drupal as new node.
6 | //
7 | // Author: Peter Hohl , 19.9.2013
8 | // http://www.freeroad.ch/
9 | // Copyright: See COPYING file that comes with this distribution
10 |
11 | #include
12 | #include "net_starterimap.h"
13 | #include "parser_eml.h"
14 | #include "coreapp/handler_net.h"
15 |
16 | // qmake -spec /usr/local/Qt4.8/mkspecs/macx-g++ -o Makefile Drupalmail.pro
17 | // /Users/pro/project/github/Drupalmail/
18 | // cd /Users/pro/.GMaildir/
19 |
20 | const int liwi = 44;
21 |
22 | int main(int argc, char *argv[]) {
23 | QCoreApplication app(argc, argv); //renamed the a to app
24 | QLocale::setDefault(QLocale::English); /// date format mail this is only console or lib! app
25 | QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
26 | QStringList localip;
27 | QTextCodec *codecx;
28 | codecx = QTextCodec::codecForMib(106);
29 | QTextStream out(stdout);
30 | out.setCodec(codecx);
31 | Handler_Net *netapp = new Handler_Net();
32 | QObject::connect(netapp, SIGNAL(Full_Quit()),&app, SLOT(quit()));
33 |
34 | //// only parse mail this
35 | /////ReadMail::Parser *read_mail = new ReadMail::Parser(0,feml.absoluteFilePath());
36 | //// only parse mail this
37 | //// QTimer::singleShot(100000000, &app, SLOT(quit()));
38 | return app.exec();
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/tidylib/utf8.h:
--------------------------------------------------------------------------------
1 | #ifndef __UTF8_H__
2 | #define __UTF8_H__
3 |
4 | /* utf8.h -- convert characters to/from UTF-8
5 |
6 | (c) 1998-2004 (W3C) MIT, ERCIM, Keio University
7 | See tidy.h for the copyright notice.
8 |
9 | CVS Info :
10 |
11 | $Author: terry_teague $
12 | $Date: 2004/08/02 02:32:47 $
13 | $Revision: 1.4 $
14 |
15 | */
16 |
17 | #include "platform.h"
18 | #include "buffio.h"
19 |
20 | /* UTF-8 encoding/decoding support
21 | ** Does not convert character "codepoints", i.e. to/from 10646.
22 | */
23 |
24 | int DecodeUTF8BytesToChar( uint* c, uint firstByte, ctmbstr successorBytes,
25 | TidyInputSource* inp, int* count );
26 |
27 | int EncodeCharToUTF8Bytes( uint c, tmbstr encodebuf,
28 | TidyOutputSink* outp, int* count );
29 |
30 |
31 | uint GetUTF8( ctmbstr str, uint *ch );
32 | tmbstr PutUTF8( tmbstr buf, uint c );
33 |
34 | #define UNICODE_BOM_BE 0xFEFF /* big-endian (default) UNICODE BOM */
35 | #define UNICODE_BOM UNICODE_BOM_BE
36 | #define UNICODE_BOM_LE 0xFFFE /* little-endian UNICODE BOM */
37 | #define UNICODE_BOM_UTF8 0xEFBBBF /* UTF-8 UNICODE BOM */
38 |
39 |
40 | Bool IsValidUTF16FromUCS4( tchar ucs4 );
41 | Bool IsHighSurrogate( tchar ch );
42 | Bool IsLowSurrogate( tchar ch );
43 |
44 | Bool IsCombinedChar( tchar ch );
45 | Bool IsValidCombinedChar( tchar ch );
46 |
47 | tchar CombineSurrogatePair( tchar high, tchar low );
48 | Bool SplitSurrogatePair( tchar utf16, tchar* high, tchar* low );
49 |
50 |
51 |
52 | #endif /* __UTF8_H__ */
53 |
--------------------------------------------------------------------------------
/Drupalmail/parser/tidy_clean.h:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: Get Mail as search result by subject & date since imap.
3 | //
4 | // Description:
5 | // Target to having a console app to filter & get mail to insert on drupal as new node.
6 | //
7 | // Author: Peter Hohl , 19.9.2013
8 | // http://www.freeroad.ch/
9 | // Copyright: See COPYING file that comes with this distribution
10 |
11 | #ifndef TIDY_CLEAN_H
12 | #define TIDY_CLEAN_H
13 |
14 | #include "parser_config.h"
15 |
16 | #include "tidy.h"
17 | #include "tmbstr.h"
18 | #include "buffio.h"
19 | #include "stdio.h"
20 | #include "errno.h"
21 |
22 | namespace HTML {
23 |
24 | #define _TIDYTMP_ \
25 | QString("%1/.tidy/").arg(QDir::homePath())
26 |
27 | #define _TIDYCONF_ \
28 | QString("%1tidy.conf").arg(_TIDYTMP_)
29 |
30 | class QTidy {
31 |
32 | public:
33 |
34 | QTidy();
35 | /// QString TidyCleanfullxhtml(QString body, const QByteArray chartset);
36 | QString TidyCleanMailHtml(QString body, const QByteArray chartset);
37 | bool file_put_utf8contents(const QString fullFileName, QString xml, const QByteArray chartset);
38 | bool SetUp_Xhtml_Mail(const QByteArray chartset);
39 | virtual ~QTidy();
40 | private:
41 | void Init(); // set up variable
42 | bool tidy_file_set_config(QString xml);
43 | QString Readutf8File(const QString fullFileName);
44 | bool CleanTidy(QString inputfile, QString outfile);
45 | QStringList e_log;
46 | TidyDoc doc;
47 | int status;
48 | };
49 |
50 |
51 |
52 |
53 | }
54 |
55 |
56 |
57 |
58 | #endif /* TIDY_CLEAN_H */
59 |
60 |
--------------------------------------------------------------------------------
/GmailHand/main.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: Get Mail as search result by subject & date since imap.
3 | //
4 | // Description:
5 | // Target to having a console app to filter & get mail to insert on drupal as new node.
6 | //
7 | // Author: Peter Hohl , 19.9.2013
8 | // http://www.freeroad.ch/
9 | // Copyright: See COPYING file that comes with this distribution
10 |
11 | #include
12 | #include "net_starterimap.h"
13 | #include "parser_eml.h"
14 |
15 |
16 | /// cd /Users/pro/Desktop/Qt_project/GmailHand/
17 | /// cd /Users/pro/project/version_sv/GmailHand/
18 | // cd /Users/pro/.GMaildir/
19 |
20 | const int liwi = 44;
21 |
22 | int main(int argc, char *argv[]) {
23 | QCoreApplication app(argc, argv); //renamed the a to app
24 | QStringList localip;
25 | QTextStream out(stdout);
26 |
27 | QFileInfo feml("/Users/pro/project/version_sv/GmailHand/zzz_sample_mail.eml");
28 |
29 | QString str("*");
30 | out << str.fill('A', liwi) << "\n";
31 | if (feml.exists()) {
32 | out << "Parse File:" << feml.absoluteFilePath() << "\n";
33 | } else {
34 | out << "Warming file not found:" << feml.absoluteFilePath() << "\n";
35 | }
36 | out << str.fill('B', liwi) << "\n";
37 | out.flush();
38 |
39 | //// qDebug() << "unicode: " << newline_br.unicode() << "\n";
40 |
41 | /////qFatal("SCAN SCAN SCAN SCAN SCAN SCAN SCAN SCAN SCAN SCAN SCAN SCAN SCAN SCAN");
42 |
43 | ReadMail::Parser read_mail(feml.absoluteFilePath());
44 | QTimer::singleShot(500, &app, SLOT(quit()));
45 | return app.exec();
46 | }
47 |
48 |
--------------------------------------------------------------------------------
/Gmailsend/gmailsend.pro:
--------------------------------------------------------------------------------
1 | #-------------------------------------------------
2 | #
3 | # Project created by QtCreator 2013-09-18T12:13:17
4 | # console debug
5 | # /Users/pro/project/github/Gmailsend/
6 | # compile dir
7 | # /Users/pro/qt/qt51/ // self build
8 | # /Users/pro/qt/qt5lang/ /Users/pro/qt/qt5lang/ ready to use package
9 | #-------------------------------------------------
10 |
11 | INCLUDEPATH += /Users/pro/qt/qt51/qtbase/include
12 | # INCLUDEPATH += /Users/pro/qt/qt5lang/5.1.1/clang_64/include
13 | # INCLUDEPATH += /usr/local/Qt-5.1.1/include
14 |
15 | # cache() /// bug from source build
16 |
17 |
18 |
19 |
20 |
21 |
22 | QT += core gui xml network
23 |
24 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
25 |
26 | TARGET = gmailsend
27 | TEMPLATE = app
28 | DESTDIR += ./
29 |
30 | macx {
31 | ICON = dmail.icns
32 | QMAKE_INFO_PLIST = Info.plist
33 | QMAKE_INFO_PLIST_OUT = gmailsend.app/Contents/Info.plist
34 | }
35 |
36 |
37 |
38 |
39 | CONFIG += warn_on \
40 | qt \
41 | silent \
42 | thread
43 |
44 | #########CONFIG += debug release
45 | CONFIG += debug
46 |
47 |
48 |
49 |
50 |
51 | ## CONFIG-=app_bundle
52 |
53 | SOURCES += main.cpp\
54 | mwindow.cpp \
55 | gmailsms.cpp \
56 | mailformat.cpp \
57 | qwwsmtpclient.cpp
58 |
59 | HEADERS += mwindow.h \
60 | gmailsms.h \
61 | mime_type.h \
62 | mailformat.h \
63 | qwwsmtpclient.h
64 |
65 | FORMS += mwindow.ui
66 |
67 |
68 | MOC_DIR = .moc
69 | OBJECTS_DIR = .obj
70 | UI_DIR = .ui
71 |
72 | RESOURCES += box.qrc
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/document_editor_2/src/docformat/ooo/document.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: document.h
3 | * Author: pro
4 | *
5 | * Created on 24. Oktober 2013, 11:36
6 | */
7 |
8 | #ifndef DOCUMENT_H
9 | #define DOCUMENT_H
10 |
11 | #include
12 | #include
13 | #include
14 | #include
15 | #include
16 | #include
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 | #include
23 | #include
24 | #include
25 | #include
26 |
27 | #define i18n QObject::tr
28 |
29 | #if 0 //// 1 or 0
30 | #define ODTDEBUG qDebug
31 | #else
32 | #define ODTDEBUG if (0) qDebug
33 | #endif
34 |
35 |
36 |
37 | namespace OOO {
38 |
39 |
40 |
41 |
42 |
43 | class Document {
44 | public:
45 | Document(const QString &fileName);
46 | ~Document();
47 |
48 | bool open();
49 |
50 | QString lastErrorString() const;
51 |
52 | QByteArray content() const;
53 | QByteArray meta() const;
54 | QByteArray styles() const;
55 | QMap images() const;
56 |
57 | private:
58 | void setError(const QString&);
59 |
60 | QString mFileName;
61 | QByteArray mContent;
62 | QByteArray mMimetype;
63 | QByteArray mSetting;
64 | QByteArray mMeta;
65 | QByteArray mStyles;
66 | QMap mImages;
67 | //// Manifest *mManifest; mimetype
68 | QString mErrorString;
69 | };
70 |
71 | }
72 |
73 | #endif /* DOCUMENT_H */
74 |
75 |
--------------------------------------------------------------------------------
/GmailHand/hand_rotatesample.txt:
--------------------------------------------------------------------------------
1 | /// rotate -/ on console
2 |
3 | #include
4 | #include
5 | #include
6 | #include
7 | #include
8 | ///#include
9 | ///#include
10 | ///#include
11 |
12 | /// network
13 | #include
14 | #include
15 | #include
16 | /// cd /Users/pro/Desktop/Qt_project/GmailHand/
17 | /// /Users/pro/Desktop/Qt_project/GmailHand/
18 |
19 | void kleep(unsigned long nsec) {
20 | timespec delay = {nsec / 1000000000, nsec % 1000000000};
21 | pselect(0, NULL, NULL, NULL, &delay, NULL);
22 | }
23 |
24 | QString turn(int x) {
25 | if (x == 1) {
26 | return QString("-");
27 | } else if (x == 2) {
28 | return QString("/");
29 | } else if (x == 3) {
30 | return QString("|");
31 | } else if (x == 4) {
32 | return QString("\\");
33 | } else {
34 | return QString("*");
35 | }
36 | }
37 |
38 |
39 | int main(int argc, char *argv[]) {
40 | QCoreApplication app(argc, argv);
41 | int x = 500;
42 | int stk = 0;
43 | QTextStream sok(stdout);
44 | for (int o = 0; o < x; o++) {
45 | sok << "Nr." << o << "=" << QChar(o) << " / ";
46 | }
47 | sok << "\n";
48 | sok << "\n";
49 | sok.flush();
50 |
51 |
52 |
53 | int liner = 1000;
54 | for (int j = 0; j < liner; j++) {
55 |
56 |
57 | stk++;
58 | QTextStream xc(stdout);
59 | xc << " wait:" << QChar(j) << " " << turn(stk) << "\r";
60 | xc.flush();
61 | kleep(100000000);
62 | if (stk == 5) {
63 | stk = 0;
64 | }
65 |
66 | }
67 |
68 | qDebug() << "line \n";
69 | return 1;
70 | }
71 |
--------------------------------------------------------------------------------
/Drupalmail/parser/mime_standard.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: Get Mail as search result by subject & date since imap.
3 | //
4 | // Description:
5 | // Target to having a console app to filter & get mail to insert on drupal as new node.
6 | //
7 | // Author: Peter Hohl , 19.9.2013
8 | // http://www.freeroad.ch/
9 | // Copyright: See COPYING file that comes with this distribution
10 |
11 |
12 | #include "mime_standard.h"
13 | #include "parser_utils.h"
14 |
15 | bool Qmailf::TestWriteln(int mode ) {
16 | ////return true;
17 | QByteArray data = QByteArray::fromBase64(chunk);
18 | QString fileout = Utils::testDocAttachmentDir(Filename());
19 | QString base64fileout = Utils::testDocAttachmentDir(Filename()+QString(".txt"));
20 | ///Utils::CarriageReturn_;
21 | if (mode == 1) {
22 | return Utils::_write_file(fileout,QString(data.constData()),txt_charset);
23 | } else {
24 | QString base64data = QString(chunk.constData());
25 | QString base64 = Utils::_format_string76(base64data);
26 | bool one = Utils::_write_file(base64fileout,base64,"utf-8");
27 | if (one) {
28 | return Utils::_writebin_tofile(fileout,data);
29 | }
30 | }
31 | return false;
32 | }
33 |
34 |
35 | QString Qmailf::EmbeddedImage() {
36 | QString base64data = QString(chunk.constData());
37 | QString isrc = QString("data:%1;base64,").arg( Mime() );
38 | isrc.append(base64data);
39 | return Utils::_format_string76(isrc);
40 | }
41 |
42 | /* QString Qmailf::EmbeddedImage() {
43 | QString base64data = QString(chunk.constData());
44 | QString isrc = QString("data:%1;base64,").arg( Mime() );
45 | isrc.append(base64data);
46 | return Utils::_format_string76(isrc);
47 | }*/
48 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/metadata.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | metadata.cpp: Implementation of Meta Class
3 |
4 | Copyright (C) 2010 Sarab D. Mattes
5 |
6 | This file is part of omapd.
7 |
8 | omapd is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | omapd is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with omapd. If not, see .
20 | */
21 |
22 | #include "metadata.h"
23 |
24 | Meta::Meta(Meta::Cardinality cardinality, Meta::Lifetime lifetime)
25 | : _cardinality(cardinality), _lifetime(lifetime)
26 | {
27 | }
28 |
29 | QString Meta::lifetimeString() const
30 | {
31 | QString str("");
32 | switch (_lifetime) {
33 | case Meta::LifetimeSession:
34 | str = "session";
35 | break;
36 | case Meta::LifetimeForever:
37 | str = "forever";
38 | break;
39 | }
40 |
41 | return str;
42 | }
43 |
44 | // Two Meta objects are equal iff their elementName and namespace members are the same
45 | bool Meta::operator ==(const Meta &other) const
46 | {
47 | if (this->_elementName == other._elementName &&
48 | this->_elementNS == other._elementNS)
49 | return true;
50 | else
51 | return false;
52 | }
53 |
54 | QDebug operator<<(QDebug dbg, const Meta & meta)
55 | {
56 | dbg.nospace() << "Metadata XML:" << meta.metaXML();
57 | return dbg.space();
58 | }
59 |
--------------------------------------------------------------------------------
/xsltwaydoc/odtdocxlib/config.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: config.h
3 | * Author: pro
4 | *
5 | * Created on 8. November 2013, 09:45
6 | */
7 |
8 | #ifndef CONFIG_H
9 | #define CONFIG_H
10 |
11 | #include
12 | #include
13 | #include
14 | #include
15 | #include
16 | #include
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 | #include
23 | #include
24 | #include
25 | #include
26 | #include
27 | #include
28 | #include
29 | #include
30 | #include
31 | #include
32 | #include
33 | #include
34 | #include
35 | #include
36 | #include
37 |
38 |
39 |
40 | // swap 0 on debug lib connect on __DOCTMPDIR__
41 | #define __DOCTMPDIR0__ \
42 | QString("%1/.DocumentCache/").arg(QDir::homePath())
43 |
44 | #define __DOCTMPDIR__ \
45 | QString("/Users/pro/code/minisvn/doc/Xsltqt5/cache/")
46 |
47 |
48 | #define __DEBUGFILEHTML__ \
49 | QString("/Users/pro/code/minisvn/doc/Xsltqt5/index.html")
50 |
51 | #define STYLELOCALDIR \
52 | QString("/Users/pro/code/minisvn/doc/Xsltqt5/style/")
53 |
54 |
55 | const int iowi = 75;
56 |
57 | #if 1 //// 1 or 0
58 | #define BASICDOCDEBUG qDebug
59 | #else
60 | #define BASICDOCDEBUG if (0) qDebug
61 | #endif
62 |
63 | #define i18n QObject::tr
64 |
65 |
66 |
67 | #define __DOCVERSION__ \
68 | QString("Ve.1.2.5")
69 |
70 | #define __APPNAME__ \
71 | QString("Office DocConverter")
72 |
73 |
74 |
75 |
76 |
77 | #endif /* CONFIG_H */
78 |
79 |
--------------------------------------------------------------------------------
/Gmailsend/mwindow.h:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: sample to send mail on smtp from gmail
3 | //
4 | // Description:
5 | // SMTP Encrypted sending mail attachment & mime chunk Editmail->document()
6 | // ( QTextDocument ) fill from image e html tag & style color full mime mail.
7 | //
8 | // Author: Peter Hohl , 19.9.2013
9 | // http://www.freeroad.ch/
10 | // Copyright: See COPYING file that comes with this distribution
11 | //
12 | //
13 |
14 | #ifndef MWINDOW_H
15 | #define MWINDOW_H
16 |
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 | #include "mailformat.h"
23 | #include "qwwsmtpclient.h"
24 |
25 | #if QT_VERSION >= 0x040500
26 | #include
27 | #endif
28 |
29 |
30 |
31 | namespace Ui {
32 | class MWindow;
33 | }
34 |
35 | class MWindow : public QMainWindow {
36 | Q_OBJECT
37 |
38 | public:
39 | explicit MWindow(QWidget *parent = 0);
40 | ~MWindow();
41 |
42 | private slots:
43 | void on_actionQuit_triggered();
44 | void on_sendmailcmd_clicked();
45 | void on_removeattachment_button_clicked();
46 | void on_usernameg_editingFinished();
47 | void on_passwordg_editingFinished();
48 | void on_actionAttachment_triggered();
49 | void on_attachment_cmd_pressed();
50 | void mail_send();
51 | void IncommingMessage(QString txt);
52 | void on_actionExport_to_odp_triggered(bool checked);
53 |
54 | private:
55 | void UpdateList();
56 | void UpdateMail();
57 | bool fileSave();
58 | bool fileSaveAs();
59 | MailFormat rawmail; /// rawmail.SetFromTo("ppkciz@gmail.com", "dev@liberatv.ch");
60 | Ui::MWindow *ui;
61 | QStringList attachment_item;
62 | QSettings setter;
63 | QString to_current_file;
64 | QwwSmtpClient *smtpserver; // socket
65 | };
66 |
67 | #endif // MWINDOW_H
68 |
--------------------------------------------------------------------------------
/GmailHand/mail_format.html:
--------------------------------------------------------------------------------
1 | Delivered-To: ppkciz@gmail.com
2 | Received: by 10.223.173.201 with SMTP id q9csp30220faz;
3 | Sat, 28 Sep 2013 13:50:11 -0700 (PDT)
4 | Return-Path:
5 | Received-SPF: pass (google.com: domain of pehohlva@gmail.com designates 10.112.149.197 as permitted sender) client-ip=10.112.149.197
6 | Authentication-Results: mr.google.com;
7 | spf=pass (google.com: domain of pehohlva@gmail.com designates 10.112.149.197 as permitted sender) smtp.mail=pehohlva@gmail.com;
8 | dkim=pass header.i=@gmail.com
9 | X-Received: from mr.google.com ([10.112.149.197])
10 | by 10.112.149.197 with SMTP id uc5mr14403071lbb.19.1380401411400 (num_hops = 1);
11 | Sat, 28 Sep 2013 13:50:11 -0700 (PDT)
12 | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
13 | d=gmail.com; s=20120113;
14 | h=mime-version:date:message-id:subject:from:to:content-type;
15 | bh=d46NbhD+4vgmDEgERQjaWHMWrDDcOveMP6B1GF5gwzc=;
16 | b=Ydbkm0TrSd0CNixfPBHAAEjoTJwRNlmHL0i7p6VAFdqvmNUZBvQNMoMJAGkTgN+7mM
17 | hUmO8u86N5L5KNotyWgazreBKj0R/Uc4cNBSa2b19IpL4pvP7Arv+33GCvxc9cALPuY5
18 | hOwizy2YPmtvN8zMGLzs1e3RTp6/Pei+j5VoMlh3SHffGpIjSEKXgmVcANIO1tcfPOz3
19 | UxmetY4wFGiHItAlzQOI9qgOK6hCPFu80bUQzlc5T2P0uhA4wL5fhl3/vsIM8HExpwZN
20 | tngCV7hu9THumy7BSwx+dZ/a6n5YsgILd75sXQT8kKaQerXZ92/3LKF9PmxAgp/Y8bgL
21 | IIsw==
22 | MIME-Version: 1.0
23 | X-Received: by 10.112.149.197 with SMTP id uc5mr14403071lbb.19.1380401411232;
24 | Sat, 28 Sep 2013 13:50:11 -0700 (PDT)
25 | Received: by 10.114.160.172 with HTTP; Sat, 28 Sep 2013 13:50:10 -0700 (PDT)
26 | Date: Sat, 28 Sep 2013 22:50:10 +0200
27 | Message-ID:
28 | Subject: Fwd: "Comunicato stampa" La volpe mangia il gatto con foto
29 | From: Peter Hohl
30 | To: ppkciz@gmail.com
31 | Content-Type: multipart/mixed; boundary=047d7b343cd2c4d5b704e777bf88
--------------------------------------------------------------------------------
/xsltwaydoc/odtdocxlib/odtzip.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: odtzip.h
3 | * Author: pro
4 | *
5 | * Created on 8. November 2013, 11:55
6 | */
7 |
8 | #ifndef ODTZIP_H
9 | #define ODTZIP_H
10 | #include "kzip.h"
11 | #include "config.h"
12 | /// xml inside a calc table or draw ???
13 | #define MARKEROBJECT \
14 | QString("/fo:item/fo:")
15 |
16 | #define TAGNAMEITEM \
17 | QString("item")
18 |
19 | /* read dom && rewrite dom if valid */
20 | class Xsl_Include {
21 | public:
22 |
23 | Xsl_Include(const QDomDocument dom, QDomDocument wdom, QDomElement appender);
24 | virtual ~Xsl_Include();
25 | private:
26 | void root();
27 | void playelement(const QDomElement el, int d, QDomElement e);
28 | QStringList attributes_read(const QDomElement el, QDomElement e);
29 | void translate_fo(QString & name, QString & value);
30 | QDomDocument d;
31 | QDomDocument w;
32 | QDomElement wroot;
33 | QDomElement dcursor;
34 | int cursor;
35 | int deep;
36 | QString xml;
37 | QString tag;
38 |
39 | };
40 |
41 | class OdtZipHandler {
42 | public:
43 | OdtZipHandler( const QString odtfile );
44 | bool load();
45 | QString stream();
46 | virtual ~OdtZipHandler();
47 | private:
48 | void logconsole(QString msg = QString() , int modus = 1);
49 | bool findobject();
50 | int insertimage();
51 | void base_header(); /// xml header
52 | void base_append_xml(const QByteArray xmlchunk ); // append elements
53 | KZip::Stream *Kzip;
54 | QMap xmlfilelist;
55 | QDir dir;
56 | int sumobj;
57 | bool is_insert_pic;
58 | QString sxmlbody;
59 | QString debugxmlfilexsl;
60 | QString FULLXMLBODY;
61 | QString FULLHTMLBODY;
62 | QByteArray bxmlbody;
63 | /// xml item
64 | QDomDocument wdom;
65 | QDomElement objectitemlist;
66 | QDomElement lbock; /// cursor to write!
67 |
68 | };
69 |
70 | #endif /* ODTZIP_H */
71 |
72 |
--------------------------------------------------------------------------------
/tidylib/alloc.c:
--------------------------------------------------------------------------------
1 | /* alloc.c -- Default memory allocation routines.
2 |
3 | (c) 1998-2005 (W3C) MIT, ERCIM, Keio University
4 | See tidy.h for the copyright notice.
5 |
6 | CVS Info :
7 |
8 | $Author: arnaud02 $
9 | $Date: 2005/04/08 09:11:13 $
10 | $Revision: 1.5 $
11 |
12 | */
13 |
14 | #include "tidy.h"
15 |
16 | static TidyMalloc g_malloc = NULL;
17 | static TidyRealloc g_realloc = NULL;
18 | static TidyFree g_free = NULL;
19 | static TidyPanic g_panic = NULL;
20 |
21 | Bool TIDY_CALL tidySetMallocCall( TidyMalloc fmalloc )
22 | {
23 | g_malloc = fmalloc;
24 | return yes;
25 | }
26 | Bool TIDY_CALL tidySetReallocCall( TidyRealloc frealloc )
27 | {
28 | g_realloc = frealloc;
29 | return yes;
30 | }
31 | Bool TIDY_CALL tidySetFreeCall( TidyFree ffree )
32 | {
33 | g_free = ffree;
34 | return yes;
35 | }
36 | Bool TIDY_CALL tidySetPanicCall( TidyPanic fpanic )
37 | {
38 | g_panic = fpanic;
39 | return yes;
40 | }
41 |
42 | void FatalError( ctmbstr msg )
43 | {
44 | if ( g_panic )
45 | g_panic( msg );
46 | else
47 | {
48 | /* 2 signifies a serious error */
49 | fprintf( stderr, "Fatal error: %s\n", msg );
50 | exit(2);
51 | }
52 | }
53 |
54 | void* MemAlloc( size_t size )
55 | {
56 | void *p = ( g_malloc ? g_malloc(size) : malloc(size) );
57 | if ( !p )
58 | FatalError("Out of memory!");
59 | return p;
60 | }
61 |
62 | void* MemRealloc( void* mem, size_t newsize )
63 | {
64 | void *p;
65 | if ( mem == NULL )
66 | return MemAlloc( newsize );
67 |
68 | p = ( g_realloc ? g_realloc(mem, newsize) : realloc(mem, newsize) );
69 | if (!p)
70 | FatalError("Out of memory!");
71 | return p;
72 | }
73 |
74 | void MemFree( void* mem )
75 | {
76 | if ( mem )
77 | {
78 | if ( g_free )
79 | g_free( mem );
80 | else
81 | free( mem );
82 | }
83 | }
84 |
85 | void ClearMemory( void *mem, size_t size )
86 | {
87 | memset(mem, 0, size);
88 | }
89 |
90 |
--------------------------------------------------------------------------------
/tidylib/tidylib.pro:
--------------------------------------------------------------------------------
1 | ######################################################################
2 | # Automatically generated by qmake (2.00a) sab 27. mag 00:38:16 2006
3 | ######################################################################
4 |
5 | DEPENDPATH += . include
6 | INCLUDEPATH += . include
7 | TEMPLATE =lib
8 | CONFIG += qt warn_off release staticlib
9 | LANGUAGE = C++
10 | #DEFINES -= UNICODE
11 | DEFINES += NDEBUG THREAD_SAFE=1 TEMP_STORE=2
12 |
13 | DESTDIR = ./
14 | win32:TARGET = tidy
15 | unix:TARGET = tidy
16 | macx:TARGET = tidy
17 |
18 | QT += xml
19 |
20 |
21 | # Input
22 | HEADERS += access.h \
23 | attrdict.h \
24 | attrs.h \
25 | charsets.h \
26 | clean.h \
27 | config.h \
28 | entities.h \
29 | forward.h \
30 | iconvtc.h \
31 | lexer.h \
32 | message.h \
33 | parser.h \
34 | pprint.h \
35 | streamio.h \
36 | tags.h \
37 | tidy-int.h \
38 | tmbstr.h \
39 | utf8.h \
40 | version.h \
41 | win32tc.h \
42 | include/buffio.h \
43 | include/fileio.h \
44 | include/platform.h \
45 | include/tidy.h \
46 | include/tidyenum.h
47 | SOURCES += access.c \
48 | alloc.c \
49 | attrask.c \
50 | attrdict.c \
51 | attrget.c \
52 | attrs.c \
53 | buffio.c \
54 | charsets.c \
55 | clean.c \
56 | config.c \
57 | entities.c \
58 | fileio.c \
59 | iconvtc.c \
60 | istack.c \
61 | lexer.c \
62 | localize.c \
63 | parser.c \
64 | pprint.c \
65 | streamio.c \
66 | tagask.c \
67 | tags.c \
68 | tidylib.c \
69 | tmbstr.c \
70 | utf8.c \
71 | win32tc.c
72 |
--------------------------------------------------------------------------------
/Gmailsend/main.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: sample to send mail on smtp from gmail
3 | //
4 | // Description:
5 | // SMTP Encrypted sending mail attachment & mime chunk Editmail->document()
6 | // ( QTextDocument ) fill from image e html tag & style color full mime mail.
7 | //
8 | // Author: Peter Hohl , 19.9.2013
9 | // http://www.freeroad.ch/
10 | // Copyright: See COPYING file that comes with this distribution
11 | // on mac make Makefile by
12 | // qmake -spec /usr/local/Qt4.8/mkspecs/macx-g++ -o Makefile gmailsend.pro
13 | // using qtcreator to make code & netbeanide C++ to format
14 | /// root /Users/pro/project/github/Gmailsend/
15 |
16 | #include "mwindow.h"
17 | #include
18 |
19 | ///// info to build a dmg bundle on mac
20 | //// old 2007 qt http://qxhtml-edit.googlecode.com/svn/trunk/htmledit/mac_bundle/
21 | #if defined(_USE_STATIC_BUILDS_)
22 | #include
23 | #if defined(_USE_qjpeg)
24 | Q_IMPORT_PLUGIN(qjpeg)
25 | #endif
26 | #if defined(_USE_qgif)
27 | Q_IMPORT_PLUGIN(qgif)
28 | #endif
29 | #if defined(_USE_qmng)
30 | Q_IMPORT_PLUGIN(qmng)
31 | #endif
32 | #if defined(_USE_qtiff)
33 | Q_IMPORT_PLUGIN(qtiff)
34 | #endif
35 | #endif
36 |
37 |
38 |
39 |
40 | int main(int argc, char *argv[]) {
41 | QApplication a(argc, argv);
42 |
43 | #if defined Q_WS_MAC
44 | QStringList path;
45 | path.append(QApplication::applicationDirPath());
46 | QDir dir(QApplication::applicationDirPath());
47 | dir.cdUp();
48 | path.append(dir.absolutePath());
49 | dir.cd("plugins");
50 | path.append(dir.absolutePath());
51 | dir.cdUp();
52 | path.append(dir.absolutePath());
53 | QApplication::setLibraryPaths(path);
54 | QDir::setCurrent(dir.absolutePath()); /* here down -> Frameworks */
55 | #endif
56 |
57 |
58 |
59 |
60 |
61 | a.setOrganizationName("Mail sender smtp Gmail");
62 | a.setOrganizationDomain("QGmail");
63 | a.setApplicationName("coremailersender");
64 | MWindow w;
65 | w.show();
66 |
67 | return a.exec();
68 | }
69 |
--------------------------------------------------------------------------------
/console_doc/doclib/document.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: document.h
3 | * Author: pro
4 | *
5 | * Created on 13. November 2013, 08:54
6 | */
7 |
8 | #ifndef DOCUMENT_H
9 | #define DOCUMENT_H
10 |
11 | #include "kzip.h"
12 | #include "config.h"
13 |
14 | class Document {
15 | public:
16 | Document( const QString n = "DOCUMENT" );
17 | void clean();
18 | bool swap();
19 | void readfile(const QString file);
20 | QByteArray loadbinfile(const QString file);
21 | bool bufferisNull();
22 | bool flush_onfile(const QString filedest);
23 | bool flush_onxmlfile(const QString fullFileName);
24 | QString execlocal(const QString cmd , const QStringList args);
25 | QString xslt2_qt5(const QStringList args);
26 | QDomDocument xmltoken();
27 | QByteArray convertPNG(QImage image, int w = 0 , int h = 0);
28 | void console(QString msg, int modus = 1);
29 |
30 | QIODevice *device() {
31 | return d;
32 | }
33 |
34 | QString htmlstream() {
35 | return QString::fromUtf8(d->data().constData()); // d->data();
36 | }
37 |
38 | QByteArray stream() {
39 | return d->data();
40 | }
41 |
42 |
43 |
44 | void SetStyle(const QString file) {
45 | style_file = file;
46 | }
47 |
48 | void SetBaseFileDoc(const QString file) {
49 | document_file = file;
50 | }
51 |
52 | void SetCache(const QString dir) {
53 | cache_dir = dir;
54 | }
55 |
56 | QString name() const {
57 | return document_name;
58 | }
59 | QString get_cachedir() const {
60 | return cache_dir;
61 | }
62 | void setError(const QString &error);
63 | virtual ~Document();
64 | QString style_file;
65 | QString document_file;
66 | QString cache_dir;
67 | QString html_stream;
68 | QString document_name;
69 | QString bin_xsltproc;
70 | QString bin_pdftohtml;
71 | QDir dir;
72 | protected:
73 |
74 | void _loader();
75 | QBuffer *d;
76 | };
77 |
78 | #endif /* DOCUMENT_H */
79 |
80 |
--------------------------------------------------------------------------------
/document_editor_2/src/docformat/ooo/converter.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: converter.h
3 | * Author: pro
4 | *
5 | * Created on 24. Oktober 2013, 14:26
6 | */
7 |
8 | #ifndef CONVERTER_H
9 | #define CONVERTER_H
10 |
11 |
12 | #include
13 | #include
14 | #include "document.h"
15 | #include "styleparser.h"
16 | #include "styleinformation.h"
17 | #include "converter.h"
18 | #include "formatproperty.h"
19 |
20 | class QDomElement;
21 | class QDomText;
22 |
23 | namespace OOO {
24 |
25 |
26 | class Document;
27 |
28 | class Converter {
29 | public:
30 | Converter();
31 | ~Converter();
32 |
33 | virtual QTextDocument *convert(const QString &fileName);
34 |
35 | private:
36 | void setError(const QString msg, const int vars = 0);
37 |
38 | bool convertBody(const QDomElement &element);
39 | bool convertText(const QDomElement &element);
40 | bool convertHeader(QTextCursor *cursor, const QDomElement &element);
41 | bool convertParagraph(QTextCursor *cursor, const QDomElement &element, const QTextBlockFormat &format = QTextBlockFormat(), bool merge = false);
42 | bool convertTextNode(QTextCursor *cursor, const QDomText &element, const QTextCharFormat &format);
43 | bool convertSpan(QTextCursor *cursor, const QDomElement &element, const QTextCharFormat &format);
44 | bool convertLink(QTextCursor *cursor, const QDomElement &element, const QTextCharFormat &format);
45 | bool convertList(QTextCursor *cursor, const QDomElement &element);
46 | bool convertTable(const QDomElement &element);
47 | bool convertFrame(const QDomElement &element);
48 | bool convertAnnotation(QTextCursor *cursor, const QDomElement &element);
49 |
50 | QTextDocument *mTextDocument;
51 | QTextCursor *mCursor;
52 | QMap imageLIST;
53 |
54 | StyleInformation *mStyleInformation;
55 | };
56 | }
57 |
58 |
59 |
60 |
61 |
62 |
63 | #endif /* CONVERTER_H */
64 |
65 |
--------------------------------------------------------------------------------
/Drupalmail/imap/net_imap_standard.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: Get Mail as search result by subject & date since imap.
3 | //
4 | // Description:
5 | // Target to having a console app to filter & get mail to insert on drupal as new node.
6 | //
7 | // Author: Peter Hohl , 19.9.2013
8 | // http://www.freeroad.ch/
9 | // Copyright: See COPYING file that comes with this distribution
10 |
11 | #include "net_imap_standard.h"
12 |
13 | Imap_Cmd::Imap_Cmd() {
14 |
15 | exists = 0; /// totalmessage found inbox / search results /
16 | recent = 0;
17 | uidnext = 0;
18 |
19 | }
20 |
21 | void Imap_Cmd::setFlags(QString f) {
22 | flags = f.split(" ", QString::SkipEmptyParts);
23 | }
24 |
25 | bool Imap_Cmd::isFlag(const QString f) {
26 | return flags.contains(f);
27 | }
28 |
29 | void Imap_Cmd::setCAPABILITY(QString c) {
30 |
31 | //// send comand -> COMPRESS DELFATE *****
32 | if (cmd_CAPABILITY.size() > 0) {
33 | QString old = cmd_CAPABILITY.join(" ");
34 | old.append(" ");
35 | old.append(c);
36 | cmd_CAPABILITY = old.split(" ", QString::SkipEmptyParts);
37 | } else {
38 | cmd_CAPABILITY = c.split(" ", QString::SkipEmptyParts);
39 | }
40 | qDebug() << "SERVER:" << cmd_CAPABILITY << " -> " << __FUNCTION__;
41 | }
42 |
43 | bool Imap_Cmd::isCAPABILITY(const QString name) {
44 |
45 | QStringList result;
46 | result = cmd_CAPABILITY.filter(name);
47 | if (result.size() > 0) {
48 | return true;
49 | }
50 | return false; /// cmd_CAPABILITY.contains(name,Qt::CaseInsensitive);
51 | }
52 |
53 | void Imap_Cmd::setSearchResult(const QStringList items) {
54 | int o = 0;
55 | rec_uid.clear();
56 | for (int i = 0; i < items.size(); ++i) {
57 | QString uid_mail = QString(items.at(i).toLocal8Bit()).trimmed();
58 | QVariant xnumber(uid_mail);
59 | if (xnumber.canConvert()) {
60 | o++;
61 | rec_uid.insert(o, xnumber.toInt());
62 | }
63 | }
64 | }
65 |
66 |
67 |
68 | Imap_Cmd::~Imap_Cmd() {
69 | }
70 |
71 |
--------------------------------------------------------------------------------
/GmailHand/deflate_chunk_incomming.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: deflate_chunk_incomming.h
3 | * Author: pro
4 | *
5 | * Created on 30. September 2013, 10:29
6 | */
7 |
8 | #ifndef DEFLATE_CHUNK_INCOMMING_H
9 | #define DEFLATE_CHUNK_INCOMMING_H
10 |
11 | #include
12 |
13 | #include
14 |
15 | namespace ChunkDeflate {
16 |
17 | /* From RFC4978 The IMAP COMPRESS:
18 | "When using the zlib library (see [RFC1951]), the functions
19 | deflateInit2(), deflate(), inflateInit2(), and inflate() suffice to
20 | implement this extension. The windowBits value must be in the range
21 | -8 to -15, or else deflateInit2() uses the wrong format.
22 | deflateParams() can be used to improve compression rate and resource
23 | use. The Z_FULL_FLUSH argument to deflate() can be used to clear the
24 | dictionary (the receiving peer does not need to do anything)."
25 |
26 | Total zlib mem use is 176KB plus a 'few kilobytes' per connection that uses COMPRESS:
27 | 96KB for deflate, 24KB for 3x8KB buffers, 32KB plus a 'few' kilobytes for inflate.
28 | */
29 |
30 | #ifdef DEFLATE_PLAY_YES
31 |
32 | class Rfc1951Compressor {
33 | public:
34 | explicit Rfc1951Compressor(int chunkSize = 8192);
35 | ~Rfc1951Compressor();
36 |
37 | bool write(QIODevice *out, QByteArray *in);
38 |
39 | private:
40 | int _chunkSize;
41 | z_stream _zStream;
42 | char *_buffer;
43 | };
44 |
45 | class Rfc1951Decompressor {
46 | public:
47 | explicit Rfc1951Decompressor(int chunkSize = 8192);
48 | ~Rfc1951Decompressor();
49 |
50 | bool consume(QIODevice *in);
51 | bool canReadLine() const;
52 | QByteArray readLine();
53 | QByteArray read(qint64 maxSize);
54 |
55 | private:
56 | int _chunkSize;
57 | z_stream _zStream;
58 | QByteArray _inBuffer;
59 | char *_stagingBuffer;
60 | QByteArray _output;
61 | };
62 |
63 | #endif
64 |
65 | }
66 |
67 |
68 |
69 |
70 | #endif /* DEFLATE_CHUNK_INCOMMING_H */
71 |
72 |
--------------------------------------------------------------------------------
/document_editor_2/src/tools/docmargin.h:
--------------------------------------------------------------------------------
1 | #ifndef DOCMARGIN_H
2 | #define DOCMARGIN_H
3 |
4 | #include
5 | #include
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 | #include
13 |
14 |
15 | #define _FIX_ 17
16 |
17 |
18 | #define POINT_TO_CM(cm) ((cm)/28.3465058)
19 | #define POINT_TO_MM(mm) ((mm)/2.83465058) //////// 0.352777778
20 | #define POINT_TO_DM(dm) ((dm)/283.465058)
21 | #define POINT_TO_INCH(inch) ((inch)/72.0)
22 | #define POINT_TO_PI(pi) ((pi)/12)
23 | #define POINT_TO_DD(dd) ((dd)/154.08124)
24 | #define POINT_TO_CC(cc) ((cc)/12.840103)
25 |
26 | #define MM_TO_POINT(mm) ((mm)*2.83465058)
27 | #define CM_TO_POINT(cm) ((cm)*28.3465058) ///// 28.346456693
28 | #define DM_TO_POINT(dm) ((dm)*283.465058)
29 | #define INCH_TO_POINT(inch) ((inch)*72.0)
30 | #define PI_TO_POINT(pi) ((pi)*12)
31 | #define DD_TO_POINT(dd) ((dd)*154.08124)
32 | #define CC_TO_POINT(cc) ((cc)*12.840103)
33 |
34 |
35 |
36 |
37 |
38 | qreal Pointo(qreal unit, const QString unita);
39 | qreal FopInt(const QString datain);
40 |
41 | class DocMargin : public QWidget {
42 | Q_OBJECT
43 |
44 | public:
45 | DocMargin(QWidget *parent = 0);
46 | QSize sizeHint() const;
47 | QSize minimumSizeHint() const;
48 | void initmargin(qreal l , qreal r) {
49 | Cursor_1_X = l;
50 | Cursor_2_X = width() - r;
51 | update();
52 | }
53 | ~DocMargin();
54 | qreal Cursor_1_X;
55 | qreal Cursor_2_X;
56 | signals:
57 | void CursorMove(qreal, qreal);
58 | protected:
59 | void resizeEvent(QResizeEvent *event);
60 | bool event(QEvent * e);
61 | void paintEvent(QPaintEvent *);
62 | void paintScale();
63 | void paintCursor();
64 | qreal FAKTORX;
65 | QString units;
66 | QColor ColText;
67 | QRectF AreaCursor_1;
68 | QRectF AreaCursor_2;
69 | qreal actual_x;
70 | int MaximumCollisionAllowed;
71 | int dimfontsize;
72 | int capturecursordiff;
73 | int lastMove;
74 |
75 |
76 |
77 | };
78 |
79 | #endif // DOCMARGIN_H
80 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/server.h:
--------------------------------------------------------------------------------
1 | /*
2 | server.h: Declaration of Server class
3 |
4 | Copyright (C) 2010 Sarab D. Mattes
5 |
6 | This file is part of omapd.
7 |
8 | omapd is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | omapd is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with omapd. If not, see .
20 | */
21 |
22 | #ifndef SERVER_H
23 | #define SERVER_H
24 |
25 | #include
26 | #include
27 | #include "mapgraphinterface.h"
28 |
29 | #if defined(Q_CC_MSVC)
30 | #define __PRETTY_FUNCTION__ __FUNCSIG__
31 | #endif
32 |
33 | class ClientHandler;
34 | class MapResponse;
35 |
36 | class Server : public QTcpServer
37 | {
38 | Q_OBJECT
39 | public:
40 | Server(MapGraphInterface *mapGraph, QObject *parent = 0);
41 | bool startListening();
42 |
43 | signals:
44 |
45 | public slots:
46 | void sendPollResponseToClient(ClientHandler *client, const QByteArray& response, MapRequest::RequestVersion reqVersion);
47 | void addClientToTimeout(const QString& authToken);
48 | void removeClientFromTimeout();
49 | void removeClientConnectionFromTimeout(ClientHandler *client);
50 |
51 | private slots:
52 | void discardConnection();
53 | void deleteClientMetadata();
54 |
55 | private:
56 | void incomingConnection(int socketDescriptor);
57 | void removeTimerForClient(const QString& authToken);
58 |
59 | private:
60 | OmapdConfig* _omapdConfig;
61 | unsigned int _metadataTimeout;
62 | MapGraphInterface* _mapGraph;
63 | QHash _clientTimeouts;
64 | QHash _clientAuthTokens;
65 | };
66 |
67 | #endif // SERVER_H
68 |
--------------------------------------------------------------------------------
/document_editor_2/src/docformat/ooo/styleparser.h:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | * Copyright (C) 2006 by Tobias Koenig *
3 | * *
4 | * This program is free software; you can redistribute it and/or modify *
5 | * it under the terms of the GNU General Public License as published by *
6 | * the Free Software Foundation; either version 2 of the License, or *
7 | * (at your option) any later version. *
8 | ***************************************************************************/
9 |
10 | #ifndef OOO_STYLEPARSER_H
11 | #define OOO_STYLEPARSER_H
12 |
13 | #include "formatproperty.h"
14 |
15 | class QDomDocument;
16 | class QDomElement;
17 |
18 | namespace OOO {
19 |
20 | class Document;
21 | class StyleInformation;
22 |
23 | class StyleParser
24 | {
25 | public:
26 | StyleParser( const Document *document, const QDomDocument &domDocument, StyleInformation *styleInformation );
27 |
28 | bool parse();
29 |
30 | static double convertUnit( const QString& );
31 |
32 | private:
33 | bool parseContentFile();
34 | bool parseStyleFile();
35 | bool parseMetaFile();
36 |
37 | bool parseDocumentCommonAttrs( QDomElement& );
38 | bool parseFontFaceDecls( QDomElement& );
39 | bool parseStyles( QDomElement& );
40 | bool parseMasterStyles( QDomElement& );
41 | bool parseAutomaticStyles( QDomElement& );
42 |
43 | StyleFormatProperty parseStyleProperty( QDomElement& );
44 | ParagraphFormatProperty parseParagraphProperty( QDomElement& );
45 | TableColumnFormatProperty parseTableColumnProperty( QDomElement& );
46 | TableCellFormatProperty parseTableCellProperty( QDomElement& );
47 | TextFormatProperty parseTextProperty( QDomElement& );
48 | PageFormatProperty parsePageProperty( QDomElement& );
49 | ListFormatProperty parseListProperty( QDomElement& );
50 |
51 | const Document *mDocument;
52 | const QDomDocument &mDomDocument;
53 | StyleInformation *mStyleInformation;
54 | bool mMasterPageNameSet;
55 | };
56 |
57 | }
58 |
59 | #endif
60 |
--------------------------------------------------------------------------------
/Drupalmail/parser/3rdparty/rfccodecs.h:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * rfccodecs - handler for various rfc/mime encodings
4 | * Copyright (C) 2000 s.carstens@gmx.de
5 | *
6 | * Imported from KDE's SVN and stripped of various parts which are not
7 | * used in Trojita. Please see KDE SVN or Trojita's git repo for the
8 | * original version.
9 | *
10 | * This library is free software; you can redistribute it and/or
11 | * modify it under the terms of the GNU Library General Public
12 | * License as published by the Free Software Foundation; either
13 | * version 2 of the License, or (at your option) any later version.
14 | *
15 | * This library is distributed in the hope that it will be useful,
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 | * Library General Public License for more details.
19 | *
20 | * You should have received a copy of the GNU Library General Public License
21 | * along with this library; see the file COPYING.LIB. If not, write to
22 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 | * Boston, MA 02110-1301, USA.
24 | *
25 | *********************************************************************/
26 | /**
27 | * @file
28 | * This file is part of the IMAP support library and defines the
29 | * RfcCodecs class.
30 | *
31 | * @brief
32 | * Provides handlers for various RFC/MIME encodings.
33 | *
34 | * @author Sven Carstens
35 | */
36 |
37 | #ifndef MIMAP_RFCCODECS_H
38 | #define MIMAP_RFCCODECS_H
39 |
40 | #include
41 |
42 |
43 | class QTextCodec;
44 |
45 | namespace MIMAP {
46 |
47 | /**
48 | Converts an Unicode IMAP mailbox to a QString which can be used in
49 | IMAP communication.
50 | @param src is the QString containing the IMAP mailbox.
51 | */
52 | QString encodeImapFolderName( const QString &src );
53 |
54 | /**
55 | Converts an UTF-7 encoded IMAP mailbox to a Unicode QString.
56 | @param inSrc is the QString containing the Unicode path.
57 | */
58 | QString decodeImapFolderName( const QString &inSrc );
59 |
60 | }
61 |
62 | #endif
63 |
--------------------------------------------------------------------------------
/Drupalmail/Drupalmail.pro:
--------------------------------------------------------------------------------
1 | ######################################################################
2 | # Automatically generated by qmake (2.01a) Mi. Okt 9 21:18:43 2013
3 | ######################################################################
4 |
5 | TEMPLATE = app
6 | TARGET = getmail
7 |
8 | QT += core core network xml gui
9 | ## gui to load qimage and textdocument..
10 | ## QT -= gui
11 |
12 |
13 | CONFIG += debug
14 | CONFIG += qt console x86_64
15 | CONFIG -= app_bundle
16 |
17 |
18 | CONFIG += warn_off \
19 | qt \
20 | silent \
21 | thread
22 |
23 | LIBS += -lz
24 |
25 | DEFINES += MY_SOCKET_DEBUG
26 | DEFINES += ONLY_CONSOLE_RUN
27 |
28 | DEFINES += DEFLATE_PLAY_YES
29 | DEFINES += DRUPAL_REMOTE
30 | # DEFINES += RETRYCASE_PUT_TRASH
31 |
32 | macx {
33 | # DEFINES += USE_FANCY_MATCH_ALGORITHM
34 | # mac core native function full window size on widget ??
35 | LIBS += -framework CoreFoundation
36 | LIBS += -framework IOKit
37 | }
38 |
39 | INCLUDEPATH += ../tidylib
40 | DEPENDPATH += ../tidylib
41 | INCLUDEPATH += ../tidylib/include
42 | DEPENDPATH += ../tidylib/include
43 | LIBS += ../tidylib/libtidy.a
44 |
45 |
46 |
47 |
48 | MOC_DIR = .moc
49 | OBJECTS_DIR = .obj
50 | UI_DIR = .ui
51 |
52 | DEPENDPATH += . drupal imap parser parser/3rdparty
53 | INCLUDEPATH += . imap parser drupal parser/3rdparty
54 |
55 | # Input
56 | HEADERS += drupal/drupal_journalist.h \
57 | imap/net_imap_standard.h \
58 | imap/net_starterimap.h \
59 | parser/mail_handler.h \
60 | parser/parser_utils.h \
61 | parser/tidy_clean.h \
62 | parser/mime_standard.h \
63 | parser/parser_config.h \
64 | parser/parser_eml.h \
65 | parser/3rdparty/kcodecs.h \
66 | parser/3rdparty/rfccodecs.h
67 | SOURCES += main.cpp \
68 | drupal/drupal_journalist.cpp \
69 | imap/net_imap_standard.cpp \
70 | parser/mime_standard.cpp \
71 | parser/parser_utils.cpp \
72 | parser/tidy_clean.cpp \
73 | imap/net_starterimap.cpp \
74 | parser/mail_handler.cpp \
75 | parser/parser_eml.cpp \
76 | parser/3rdparty/kcodecs.cpp \
77 | parser/3rdparty/rfccodecs.cpp
78 |
--------------------------------------------------------------------------------
/tidylib/parser.h:
--------------------------------------------------------------------------------
1 | #ifndef __PARSER_H__
2 | #define __PARSER_H__
3 |
4 | /* parser.h -- HTML Parser
5 |
6 | (c) 1998-2005 (W3C) MIT, ERCIM, Keio University
7 | See tidy.h for the copyright notice.
8 |
9 | CVS Info :
10 |
11 | $Author: arnaud02 $
12 | $Date: 2005/08/03 18:07:01 $
13 | $Revision: 1.10 $
14 |
15 | */
16 |
17 | #include "forward.h"
18 |
19 | Bool CheckNodeIntegrity(Node *node);
20 |
21 | /*
22 | used to determine how attributes
23 | without values should be printed
24 | this was introduced to deal with
25 | user defined tags e.g. Cold Fusion
26 | */
27 | Bool IsNewNode(Node *node);
28 |
29 | void CoerceNode(TidyDocImpl* doc, Node *node, TidyTagId tid, Bool obsolete, Bool expected);
30 |
31 | /* extract a node and its children from a markup tree */
32 | Node *RemoveNode(Node *node);
33 |
34 | /* remove node from markup tree and discard it */
35 | Node *DiscardElement( TidyDocImpl* doc, Node *element);
36 |
37 | /* insert node into markup tree as the firt element
38 | of content of element */
39 | void InsertNodeAtStart(Node *element, Node *node);
40 |
41 | /* insert node into markup tree as the last element
42 | of content of "element" */
43 | void InsertNodeAtEnd(Node *element, Node *node);
44 |
45 | /* insert node into markup tree before element */
46 | void InsertNodeBeforeElement(Node *element, Node *node);
47 |
48 | /* insert node into markup tree after element */
49 | void InsertNodeAfterElement(Node *element, Node *node);
50 |
51 | Node *TrimEmptyElement( TidyDocImpl* doc, Node *element );
52 | Node* DropEmptyElements(TidyDocImpl* doc, Node* node);
53 |
54 |
55 | /* assumes node is a text node */
56 | Bool IsBlank(Lexer *lexer, Node *node);
57 |
58 |
59 | /*
60 | duplicate name attribute as an id
61 | and check if id and name match
62 | */
63 | /* acceptable content for pre elements */
64 | Bool PreContent( TidyDocImpl* doc, Node *node );
65 |
66 | Bool IsJavaScript(Node *node);
67 | Bool DescendantOf(Node *element, TidyTagId tid);
68 |
69 | /*
70 | HTML is the top level element
71 | */
72 | void ParseDocument( TidyDocImpl* doc );
73 |
74 |
75 |
76 | /*
77 | XML documents
78 | */
79 | Bool XMLPreserveWhiteSpace( TidyDocImpl* doc, Node *element );
80 |
81 | void ParseXMLDocument( TidyDocImpl* doc );
82 |
83 | #endif /* __PARSER_H__ */
84 |
--------------------------------------------------------------------------------
/Drupalmail/coreapp/handler_net.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: Get Mail as search result by subject & date since imap.
3 | //
4 | // Description:
5 | // Target to having a console app to filter & get mail to insert on drupal as new node.
6 | //
7 | // Author: Peter Hohl , 19.9.2013
8 | // http://www.freeroad.ch/
9 | // Copyright: See COPYING file that comes with this distribution
10 | #include "handler_net.h"
11 | #include "net_starterimap.h"
12 | #include "client_session.h"
13 |
14 | //// session static to register data pass name ecc.
15 | //// http://fop-miniscribus.googlecode.com/svn/trunk/fop_miniscribus.2.0.0/src/SessionManager.h
16 |
17 | Handler_Net::Handler_Net(QObject *parent) :
18 | QObject(parent) {
19 |
20 | bool get = true;
21 | if (get) {
22 | imap = new Net_StarterImap(this);
23 | imap->SearchWord(QString("lugano"), -1);
24 | imap->Connect(QString("hjkhhkhhkhkh@gmail.com"), QString("dftvgbhnjbhgvfrdecfv"));
25 | connect(imap, SIGNAL(Exit_Close()), this, SLOT(Close_Imap()));
26 | connect(imap, SIGNAL(Next_Standby()), this, SLOT(NextComand()));
27 | connect(imap, SIGNAL(Progress(int)), this, SLOT(Init_Parse(int)));
28 | }
29 |
30 | /////const QString fileheder = QString("/Users/pro/.GMaildir/sample.txt");
31 | ///QString header = Utils::utf8loadfromfile(fileheder);
32 | //// QString _from = Filter::lineonPos(QString("From:"), header);
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | //// emit Full_Quit();
42 |
43 |
44 |
45 | /// /Users/pro/project/github/Drupalmail/
46 | }
47 |
48 |
49 | void Handler_Net::Init_Parse( const int uid ) {
50 |
51 | MailSession *mini = MailSession::instance();
52 |
53 | QTextStream out(stdout);
54 | QString str('*');
55 | out << str.fill('.', _IMAIL_WIDTH_) << "\n";
56 | out << "Init handle parse:" << uid << "\n";
57 | out << str.fill('.', _IMAIL_WIDTH_) << "\n";
58 | out.flush();
59 |
60 | }
61 |
62 | void Handler_Net::Close_Imap() {
63 | emit Full_Quit();
64 | }
65 |
66 | //// a list from search word... on subject
67 |
68 | void Handler_Net::NextComand() {
69 | if (imap) {
70 | imap->PreparetoClose();
71 | //// void SetQuery( const QString word );
72 | }
73 | emit Full_Quit();
74 | }
75 |
--------------------------------------------------------------------------------
/document_editor_2/bin/dummy.txt:
--------------------------------------------------------------------------------
1 | .
2 |
3 | otool -L OasisEdit.app/Contents/MacOs/OasisEdit
4 | OasisEdit.app/Contents/MacOs/OasisEdit:
5 | /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
6 | /Users/pro/qt/qt5lang/5.1.1/clang_64/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (compatibility version 5.1.0, current version 5.1.1)
7 | /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 19.0.0)
8 | /Users/pro/qt/qt5lang//5.1.1/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.1.0, current version 5.1.1)
9 | /Users/pro/qt/qt5lang//5.1.1/clang_64/lib/QtGui.framework/Versions/5/QtGui (compatibility version 5.1.0, current version 5.1.1)
10 | /Users/pro/qt/qt5lang//5.1.1/clang_64/lib/QtCore.framework/Versions/5/QtCore (compatibility version 5.1.0, current version 5.1.1)
11 | /Users/pro/qt/qt5lang//5.1.1/clang_64/lib/QtXml.framework/Versions/5/QtXml (compatibility version 5.1.0, current version 5.1.1)
12 | /Users/pro/qt/qt5lang//5.1.1/clang_64/lib/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.1.0, current version 5.1.1)
13 | /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
14 | /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
15 | /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
16 | /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
17 |
18 |
19 | Copy plugin to .... /Users/pro/project/github/document_editor_2/bin/OasisEdit.app/Contents/plugins.
20 | Processing QtCore...
21 | ...QtCore copied.
22 | ...QtCore done.
23 | Processing QtWidgets...
24 | ...QtWidgets copied.
25 | ...QtWidgets done.
26 | Processing QtGui...
27 | ...QtGui copied.
28 | ...QtGui done.
29 | Processing QtXmlPatterns...
30 | ...QtXmlPatterns copied.
31 | ...QtXmlPatterns done.
32 | Processing QtXml...
33 | ...QtXml copied.
34 | ...QtXml done.
35 | Processing QtNetwork...
36 | ...QtNetwork copied.
37 | ...QtNetwork done.
38 | Processing QtPrintSupport...
39 | ...QtPrintSupport copied.
40 | ...QtPrintSupport done.
41 | Removing any debug libraries and headers...
42 | Preparing image directory...
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/plugins/RAMHashTables/mapgraphplugin.h:
--------------------------------------------------------------------------------
1 | /*
2 | mapgraphplugin.h: Declaration of MapGraphPlugin class
3 |
4 | Copyright (C) 2010 Sarab D. Mattes
5 |
6 | This file is part of omapd.
7 |
8 | omapd is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | omapd is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with omapd. If not, see .
20 | */
21 |
22 | #ifndef MAPGRAPHPLUGIN_H
23 | #define MAPGRAPHPLUGIN_H
24 |
25 | #include
26 |
27 | #include "mapgraphinterface.h"
28 |
29 | class MapGraphPlugin : public QObject, MapGraphInterface {
30 | Q_OBJECT
31 | Q_INTERFACES(MapGraphInterface)
32 |
33 | public:
34 | void dumpMap();
35 | void clearMap();
36 |
37 | void addMeta(Link key, bool isLink, QList publisherMeta, QString publisherId);
38 | bool deleteMetaWithPublisherId(QString pubId, QHash > *idMetaDeleted, QHash > *linkMetaDeleted, bool sessionMetaOnly = false);
39 | void replaceMeta(Link link, bool isLink, QList newMetaList = QList());
40 |
41 | // List of all identifiers that targetId is on a link with
42 | QList linksTo(Id targetId);
43 |
44 | QList metaForLink(Link link);
45 | QList metaForId(Id id);
46 |
47 | void setDebug(bool debug) { _debug = debug; }
48 |
49 | private:
50 | QHash > _idMeta; // Id --> all metadata on Id
51 | QHash > _linkMeta; // Link --> all metadata on Link
52 | QMultiHash _linksTo; // id1 --> id2 and id2 --> id1
53 | QMultiHash _publisherIds; // publisherId --> Id (useful for purgePublisher)
54 | QMultiHash _publisherLinks; // publisherId --> Link (useful for purgePublisher)
55 |
56 | bool _debug;
57 | };
58 |
59 | #endif // MAPGRAPHPLUGIN_H
60 |
--------------------------------------------------------------------------------
/console_doc/doclib/oldcode_backup.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 | xslt convert running..
4 |
5 | bool XsltVersion1::TransformXSLT(const QString stylexslt, const QString xmlfiledata) {
6 |
7 | /// params = param
8 | QString infilexslt = stylexslt;
9 | QString outfilexml = xmlfiledata;
10 | QString resulterxml = TEMPFILEXSLTRESULTS;
11 | QString catnummer = QString("\"%1\"").arg(Tools::TimeNow());
12 | QByteArray nummero = catnummer.toLocal8Bit();
13 | QString catnummer1 = QString("\"%1\"").arg(Tools::QTime_Null());
14 | QByteArray nummero1 = catnummer1.toLocal8Bit();
15 |
16 | QString success = "";
17 | const char* params[6];
18 | params[0] = "NowTime";
19 | params[1] = nummero.data();
20 | params[2] = "UnixTime";
21 | params[3] = nummero1.data();
22 | params[4] = NULL;
23 | params[5] = NULL;
24 |
25 | /* ######################################### */
26 | xsltStylesheetPtr cur = NULL;
27 | xmlDocPtr doc, outputDoc;
28 | xmlSubstituteEntitiesDefault(1);
29 | xmlLoadExtDtdDefaultValue = 1;
30 | /* ######################################### */
31 | char* xslt_errors;
32 | xsltSetGenericErrorFunc(&xslt_errors, qt_libxml_error_handler);
33 | xmlSetGenericErrorFunc(&xslt_errors, qt_libxml_error_handler);
34 | xsltSetGenericDebugFunc(&xslt_errors, qt_libxml_error_handler);
35 | QByteArray gocharxslt = infilexslt.toLocal8Bit();
36 | cur = xsltParseStylesheetFile((const xmlChar*) gocharxslt.data());
37 | doc = xmlParseFile(QFile::encodeName(outfilexml));
38 | outputDoc = xsltApplyStylesheet(cur, doc, params);
39 | xmlFreeDoc(doc); /* free ram from xml! */
40 | doc = outputDoc; /* swap input and output */
41 | FILE* outfile = fopen(QFile::encodeName(resulterxml), "w");
42 | xsltSaveResultToFile(outfile, doc, cur);
43 | fclose(outfile);
44 | xsltFreeStylesheet(cur);
45 | xmlFreeDoc(outputDoc);
46 | xsltCleanupGlobals();
47 | xmlCleanupParser();
48 |
49 | //// read result file and delete
50 | RamBuffer *buffer = new RamBuffer("xslt1result");
51 | buffer->LoadFile(TEMPFILEXSLTRESULTS);
52 | XMLHTMLRESULT = buffer->fromUtf8();
53 | KZIPDEBUG() << " end XMLHTMLRESULT " << XMLHTMLRESULT.size();
54 | KZIPDEBUG() << " endfile " << TEMPFILEXSLTRESULTS;
55 | return (XMLHTMLRESULT.size() > 11) ? true : false;
56 | }
57 |
--------------------------------------------------------------------------------
/tidylib/xmlhighlighter.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2006 J-P Nurmi. All rights reserved.
4 | **
5 | ** The used XML syntax highlighting principles have been adapted from
6 | ** KXESyntaxHighlighter, which is part of KXML Editor 1.1.4,
7 | ** (C) 2003 by The KXMLEditor Team (http://kxmleditor.sourceforge.net).
8 | **
9 | ** This file may be used under the terms of the GPL Version 2, June 1991.
10 | ** For details, see http://www.gnu.org/licenses/gpl.html
11 | **
12 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
14 | **
15 | ****************************************************************************/
16 | #ifndef XMLHIGHLIGHTER_H
17 | #define XMLHIGHLIGHTER_H
18 |
19 | #include
20 | #include
21 | #include
22 |
23 | class XmlHighlighter : public QSyntaxHighlighter
24 | {
25 | public:
26 | XmlHighlighter(QObject* parent);
27 | XmlHighlighter(QTextDocument* parent);
28 | XmlHighlighter(QTextEdit* parent);
29 | ~XmlHighlighter();
30 |
31 | enum HighlightType
32 | {
33 | SyntaxChar,
34 | ElementName,
35 | Comment,
36 | AttributeName,
37 | AttributeValue,
38 | Error,
39 | Other
40 | };
41 |
42 | void setHighlightColor(HighlightType type, QColor color, bool foreground = true);
43 | void setHighlightFormat(HighlightType type, QTextCharFormat format);
44 |
45 | protected:
46 | void highlightBlock(const QString& rstrText);
47 | int processDefaultText(int i, const QString& rstrText);
48 |
49 | private:
50 | void init();
51 |
52 | QTextCharFormat fmtSyntaxChar;
53 | QTextCharFormat fmtElementName;
54 | QTextCharFormat fmtComment;
55 | QTextCharFormat fmtAttributeName;
56 | QTextCharFormat fmtAttributeValue;
57 | QTextCharFormat fmtError;
58 | QTextCharFormat fmtOther;
59 |
60 | enum ParsingState
61 | {
62 | NoState = 0,
63 | ExpectElementNameOrSlash,
64 | ExpectElementName,
65 | ExpectAttributeOrEndOfElement,
66 | ExpectEqual,
67 | ExpectAttributeValue
68 | };
69 |
70 | enum BlockState
71 | {
72 | NoBlock = -1,
73 | InComment,
74 | InElement
75 | };
76 |
77 | ParsingState state;
78 | };
79 |
80 | #endif // XMLHIGHLIGHTER_H
81 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/qmailfolderfwd.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 | ** Contact: Qt Software Information (qt-info@nokia.com)
5 | **
6 | ** This file is part of the Qt Messaging Framework.
7 | **
8 | ** $QT_BEGIN_LICENSE:LGPL$
9 | ** No Commercial Usage
10 | ** This file contains pre-release code and may not be distributed.
11 | ** You may use this file in accordance with the terms and conditions
12 | ** contained in the either Technology Preview License Agreement or the
13 | ** Beta Release License Agreement.
14 | **
15 | ** GNU Lesser General Public License Usage
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
17 | ** General Public License version 2.1 as published by the Free Software
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
19 | ** packaging of this file. Please review the following information to
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 | **
23 | ** In addition, as a special exception, Nokia gives you certain
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26 | ** package.
27 | **
28 | ** GNU General Public License Usage
29 | ** Alternatively, this file may be used under the terms of the GNU
30 | ** General Public License version 3.0 as published by the Free Software
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
32 | ** packaging of this file. Please review the following information to
33 | ** ensure the GNU General Public License version 3.0 requirements will be
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
35 | **
36 | ** If you are unsure which license is appropriate for your use, please
37 | ** contact the sales department at qt-sales@nokia.com.
38 | ** $QT_END_LICENSE$
39 | **
40 | ****************************************************************************/
41 |
42 | #ifndef QMAILFOLDERFWD_H
43 | #define QMAILFOLDERFWD_H
44 |
45 | #include "qmailglobal.h"
46 |
47 | class QTOPIAMAIL_EXPORT QMailFolderFwd
48 | {
49 | public:
50 | enum PredefinedFolderId { LocalStorageFolderId = 1 };
51 | };
52 |
53 | #endif
54 |
55 |
--------------------------------------------------------------------------------
/console_doc/doclib/odtzip.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: odtzip.h
3 | * Author: pro
4 | *
5 | * Created on 8. November 2013, 11:55
6 | */
7 |
8 | //// memo union xml file http://sourceforge.net/p/qtexcel-xslt/code/HEAD/tree/_odbc_wizard/browser.cpp#l615
9 |
10 | #ifndef ODTZIP_H
11 | #define ODTZIP_H
12 | #include "kzip.h"
13 | #include "config.h"
14 | #include "document.h"
15 |
16 | /// xml inside a calc table or draw ???
17 | #define MARKEROBJECT \
18 | QString("/fo:item/fo:")
19 |
20 | #define TAGNAMEITEM \
21 | QString("item")
22 |
23 | /* read dom && rewrite dom if valid */
24 | class Xsl_Include {
25 | public:
26 |
27 | Xsl_Include(const QDomDocument dom, QDomDocument wdom, QDomElement appender);
28 | virtual ~Xsl_Include();
29 | private:
30 | void root();
31 | void playelement(const QDomElement el, int d, QDomElement e);
32 | QStringList attributes_read(const QDomElement el, QDomElement e);
33 | void translate_fo(QString & name, QString & value, QDomElement appender);
34 | QDomDocument d;
35 | QDomDocument w;
36 | QDomElement wroot;
37 | QDomElement dcursor;
38 | int cursor;
39 | int deep;
40 | QString xml;
41 | QString tag;
42 |
43 | };
44 |
45 | class OdtZipHandler : public Document {
46 | public:
47 | OdtZipHandler(const QString odtfile);
48 | bool is_Load() {
49 | return (FULLHTMLBODY.size() > 0) ? true : false;
50 | }
51 | QString stream_html() {
52 | return FULLHTMLBODY;
53 | }
54 | virtual ~OdtZipHandler();
55 | private:
56 | void logconsole(QString msg = QString(), int modus = 1);
57 | QByteArray docitem(const QString archive);
58 | bool findobject();
59 | int insertimage();
60 | void base_header(); /// xml header
61 | void base_append_xml(const QByteArray xmlchunk); // append elements
62 | QMap xmlfilelist;
63 | QDir dir;
64 |
65 | int sumobj;
66 | /// debug modus false
67 | bool is_insert_pic;
68 | bool success_odt;
69 |
70 |
71 |
72 | QString XMLTMP; /// copy paste item
73 | QString FULLXMLBODY; /// the ready xmlto convert
74 | /// filled this at end parse...
75 | QString FULLHTMLBODY; /// the full ready htmlcode + embbeded image...
76 | /// xml item
77 | QDomDocument wdom;
78 | QDomElement objectitemlist;
79 | QDomElement lbock; /// cursor to write!
80 |
81 | };
82 |
83 | #endif /* ODTZIP_H */
84 |
85 |
--------------------------------------------------------------------------------
/tidylib/fileio.c:
--------------------------------------------------------------------------------
1 | /* fileio.c -- does standard I/O
2 |
3 | (c) 1998-2006 (W3C) MIT, ERCIM, Keio University
4 | See tidy.h for the copyright notice.
5 |
6 | CVS Info :
7 |
8 | $Author: arnaud02 $
9 | $Date: 2006/01/25 14:17:35 $
10 | $Revision: 1.9 $
11 |
12 | Default implementations of Tidy input sources
13 | and output sinks based on standard C FILE*.
14 |
15 | */
16 |
17 | #include
18 |
19 | #include "fileio.h"
20 | #include "tidy.h"
21 |
22 |
23 | typedef struct _fp_input_source
24 | {
25 | FILE* fp;
26 | TidyBuffer unget;
27 | } FileSource;
28 |
29 | static int TIDY_CALL filesrc_getByte( void* sourceData )
30 | {
31 | FileSource* fin = (FileSource*) sourceData;
32 | int bv;
33 | if ( fin->unget.size > 0 )
34 | bv = tidyBufPopByte( &fin->unget );
35 | else
36 | bv = fgetc( fin->fp );
37 | return bv;
38 | }
39 |
40 | static Bool TIDY_CALL filesrc_eof( void* sourceData )
41 | {
42 | FileSource* fin = (FileSource*) sourceData;
43 | Bool isEOF = ( fin->unget.size == 0 );
44 | if ( isEOF )
45 | isEOF = feof( fin->fp ) != 0;
46 | return isEOF;
47 | }
48 |
49 | static void TIDY_CALL filesrc_ungetByte( void* sourceData, byte bv )
50 | {
51 | FileSource* fin = (FileSource*) sourceData;
52 | tidyBufPutByte( &fin->unget, bv );
53 | }
54 |
55 | void TIDY_CALL initFileSource( TidyInputSource* inp, FILE* fp )
56 | {
57 | FileSource* fin = NULL;
58 |
59 | inp->getByte = filesrc_getByte;
60 | inp->eof = filesrc_eof;
61 | inp->ungetByte = filesrc_ungetByte;
62 |
63 | fin = (FileSource*) MemAlloc( sizeof(FileSource) );
64 | ClearMemory( fin, sizeof(FileSource) );
65 | fin->fp = fp;
66 | inp->sourceData = fin;
67 | }
68 |
69 | void TIDY_CALL freeFileSource( TidyInputSource* inp, Bool closeIt )
70 | {
71 | FileSource* fin = (FileSource*) inp->sourceData;
72 | if ( closeIt && fin && fin->fp )
73 | fclose( fin->fp );
74 | tidyBufFree( &fin->unget );
75 | MemFree( fin );
76 | }
77 |
78 | void TIDY_CALL filesink_putByte( void* sinkData, byte bv )
79 | {
80 | FILE* fout = (FILE*) sinkData;
81 | fputc( bv, fout );
82 | }
83 |
84 | void TIDY_CALL initFileSink( TidyOutputSink* outp, FILE* fp )
85 | {
86 | outp->putByte = filesink_putByte;
87 | outp->sinkData = fp;
88 | }
89 |
90 | /*
91 | * local variables:
92 | * mode: c
93 | * indent-tabs-mode: nil
94 | * c-basic-offset: 4
95 | * eval: (c-set-offset 'substatement-open 0)
96 | * end:
97 | */
98 |
--------------------------------------------------------------------------------
/tidylib/tmbstr.h:
--------------------------------------------------------------------------------
1 | #ifndef __TMBSTR_H__
2 | #define __TMBSTR_H__
3 |
4 | /* tmbstr.h - Tidy string utility functions
5 |
6 | (c) 1998-2004 (W3C) MIT, ERCIM, Keio University
7 | See tidy.h for the copyright notice.
8 |
9 | CVS Info :
10 |
11 | $Author: arnaud02 $
12 | $Date: 2004/12/06 15:05:29 $
13 | $Revision: 1.8 $
14 |
15 | */
16 |
17 | #include "platform.h"
18 |
19 | #ifdef __cplusplus
20 | extern "C"
21 | {
22 | #endif
23 |
24 | /* like strdup but using MemAlloc */
25 | tmbstr tmbstrdup( ctmbstr str );
26 |
27 | /* like strndup but using MemAlloc */
28 | tmbstr tmbstrndup( ctmbstr str, uint len);
29 |
30 | /* exactly same as strncpy */
31 | uint tmbstrncpy( tmbstr s1, ctmbstr s2, uint size );
32 |
33 | uint tmbstrcpy( tmbstr s1, ctmbstr s2 );
34 |
35 | uint tmbstrcat( tmbstr s1, ctmbstr s2 );
36 |
37 | /* exactly same as strcmp */
38 | int tmbstrcmp( ctmbstr s1, ctmbstr s2 );
39 |
40 | /* returns byte count, not char count */
41 | uint tmbstrlen( ctmbstr str );
42 |
43 | /*
44 | MS C 4.2 doesn't include strcasecmp.
45 | Note that tolower and toupper won't
46 | work on chars > 127.
47 |
48 | Neither do Lexer.ToLower() or Lexer.ToUpper()!
49 |
50 | We get away with this because, except for XML tags,
51 | we are always comparing to ascii element and
52 | attribute names defined by HTML specs.
53 | */
54 | int tmbstrcasecmp( ctmbstr s1, ctmbstr s2 );
55 |
56 | int tmbstrncmp( ctmbstr s1, ctmbstr s2, uint n );
57 |
58 | int tmbstrncasecmp( ctmbstr s1, ctmbstr s2, uint n );
59 |
60 | /* return offset of cc from beginning of s1,
61 | ** -1 if not found.
62 | */
63 | int tmbstrnchr( ctmbstr s1, uint len1, tmbchar cc );
64 |
65 | ctmbstr tmbsubstrn( ctmbstr s1, uint len1, ctmbstr s2 );
66 | ctmbstr tmbsubstrncase( ctmbstr s1, uint len1, ctmbstr s2 );
67 | ctmbstr tmbsubstr( ctmbstr s1, ctmbstr s2 );
68 |
69 | /* transform string to lower case */
70 | tmbstr tmbstrtolower( tmbstr s );
71 |
72 | /* Transform ASCII chars in string to upper case */
73 | tmbstr tmbstrtoupper(tmbstr s);
74 |
75 | Bool tmbsamefile( ctmbstr filename1, ctmbstr filename2 );
76 |
77 | int tmbvsnprintf(tmbstr buffer, size_t count, ctmbstr format, va_list args)
78 | #ifdef __GNUC__
79 | __attribute__((format(printf, 3, 0)))
80 | #endif
81 | ;
82 | int tmbsnprintf(tmbstr buffer, size_t count, ctmbstr format, ...)
83 | #ifdef __GNUC__
84 | __attribute__((format(printf, 3, 4)))
85 | #endif
86 | ;
87 |
88 | #ifdef __cplusplus
89 | } /* extern "C" */
90 | #endif
91 |
92 | #endif /* __TMBSTR_H__ */
93 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/clientconfiguration.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | clientconfiguration.cpp: Implementation of ClientConfiguration class
3 |
4 | Copyright (C) 2011 Sarab D. Mattes
5 |
6 | This file is part of omapd.
7 |
8 | omapd is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | omapd is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with omapd. If not, see .
20 | */
21 |
22 | #include "clientconfiguration.h"
23 |
24 | ClientConfiguration::ClientConfiguration()
25 | {
26 | _haveClientCert = false;
27 | _authType = MapRequest::AuthNone;
28 | _authz = OmapdConfig::DenyAll;
29 | }
30 |
31 | void ClientConfiguration::createBasicAuthClient(const QString& clientName, const QString& username, const QString& password, OmapdConfig::AuthzOptions authz, const QString& metadataPolicy)
32 | {
33 | _authType = MapRequest::AuthBasic;
34 | _authz = authz;
35 | _name = clientName;
36 | _username = username;
37 | _password = password;
38 | _metadataPolicy = metadataPolicy;
39 | }
40 |
41 | void ClientConfiguration::createCertAuthClient(const QString& clientName, const QString& certFile, const QString& caCertFile, OmapdConfig::AuthzOptions authz, const QString& metadataPolicy)
42 | {
43 | _authType = MapRequest::AuthCert;
44 | _authz = authz;
45 | _name = clientName;
46 | _certFileName = certFile;
47 | _caCertFileName = caCertFile;
48 | _haveClientCert = true;
49 | _metadataPolicy = metadataPolicy;
50 | }
51 |
52 | void ClientConfiguration::createCAAuthClient(const QString& clientPrefix, const QString& issuingCACertFile, const QString& caCertFile, OmapdConfig::AuthzOptions authz, const QString& metadataPolicy, const QString& blacklistDir)
53 | {
54 | _authType = MapRequest::AuthCACert;
55 | _authz = authz;
56 | _name = clientPrefix;
57 | _caCertFileName = caCertFile;
58 | _blacklistDirectory = blacklistDir;
59 | // In this case, _certFileName and _haveClientCert refer to the issuingCACertFile
60 | _certFileName = issuingCACertFile;
61 | _haveClientCert = true;
62 | _metadataPolicy = metadataPolicy;
63 | }
64 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/qmaildatacomparator.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 | ** Contact: Qt Software Information (qt-info@nokia.com)
5 | **
6 | ** This file is part of the Qt Messaging Framework.
7 | **
8 | ** $QT_BEGIN_LICENSE:LGPL$
9 | ** No Commercial Usage
10 | ** This file contains pre-release code and may not be distributed.
11 | ** You may use this file in accordance with the terms and conditions
12 | ** contained in the either Technology Preview License Agreement or the
13 | ** Beta Release License Agreement.
14 | **
15 | ** GNU Lesser General Public License Usage
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
17 | ** General Public License version 2.1 as published by the Free Software
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
19 | ** packaging of this file. Please review the following information to
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 | **
23 | ** In addition, as a special exception, Nokia gives you certain
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26 | ** package.
27 | **
28 | ** GNU General Public License Usage
29 | ** Alternatively, this file may be used under the terms of the GNU
30 | ** General Public License version 3.0 as published by the Free Software
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
32 | ** packaging of this file. Please review the following information to
33 | ** ensure the GNU General Public License version 3.0 requirements will be
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
35 | **
36 | ** If you are unsure which license is appropriate for your use, please
37 | ** contact the sales department at qt-sales@nokia.com.
38 | ** $QT_END_LICENSE$
39 | **
40 | ****************************************************************************/
41 |
42 | #ifndef QMAILDATACOMPARATOR_H
43 | #define QMAILDATACOMPARATOR_H
44 |
45 | namespace QMailDataComparator {
46 |
47 | enum EqualityComparator
48 | {
49 | Equal,
50 | NotEqual
51 | };
52 |
53 | enum InclusionComparator
54 | {
55 | Includes,
56 | Excludes
57 | };
58 |
59 | enum RelationComparator
60 | {
61 | LessThan,
62 | LessThanEqual,
63 | GreaterThan,
64 | GreaterThanEqual
65 | };
66 |
67 | enum PresenceComparator
68 | {
69 | Present,
70 | Absent
71 | };
72 |
73 | }
74 |
75 | #endif
76 |
--------------------------------------------------------------------------------
/console_doc/doclib/xmledit.h:
--------------------------------------------------------------------------------
1 | #ifndef XMLHIGHLIGHTER_H
2 | #define XMLHIGHLIGHTER_H
3 |
4 | #include
5 | #include
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 | #include
13 | #include
14 | #include
15 | #include
16 | #include
17 | #include
18 | #include
19 |
20 |
21 | class XmlHighlighter : public QSyntaxHighlighter
22 | {
23 | public:
24 | XmlHighlighter(QObject* parent);
25 | XmlHighlighter(QTextDocument* parent);
26 | XmlHighlighter(QTextEdit* parent);
27 | ~XmlHighlighter();
28 |
29 | enum HighlightType
30 | {
31 | SyntaxChar,
32 | ElementName,
33 | Comment,
34 | AttributeName,
35 | AttributeValue,
36 | Error,
37 | Other
38 | };
39 |
40 | void setHighlightColor(HighlightType type, QColor color, bool foreground = true);
41 | void setHighlightFormat(HighlightType type, QTextCharFormat format);
42 |
43 | protected:
44 | void highlightBlock(const QString& rstrText);
45 | int processDefaultText(int i, const QString& rstrText);
46 |
47 | private:
48 | void init();
49 |
50 | QTextCharFormat fmtSyntaxChar;
51 | QTextCharFormat fmtElementName;
52 | QTextCharFormat fmtComment;
53 | QTextCharFormat fmtAttributeName;
54 | QTextCharFormat fmtAttributeValue;
55 | QTextCharFormat fmtError;
56 | QTextCharFormat fmtOther;
57 |
58 | enum ParsingState
59 | {
60 | NoState = 0,
61 | ExpectElementNameOrSlash,
62 | ExpectElementName,
63 | ExpectAttributeOrEndOfElement,
64 | ExpectEqual,
65 | ExpectAttributeValue
66 | };
67 |
68 | enum BlockState
69 | {
70 | NoBlock = -1,
71 | InComment,
72 | InElement
73 | };
74 |
75 | ParsingState state;
76 | };
77 |
78 |
79 |
80 |
81 |
82 | class XMLTextEdit : public QTextEdit
83 | {
84 | Q_OBJECT
85 | //
86 | public:
87 | XMLTextEdit( QWidget * parent = 0 );
88 | bool Conform();
89 | QDomDocument xml_document();
90 | inline QString text() const
91 | {
92 | return QTextEdit::toPlainText();
93 | }
94 | QMenu *createOwnStandardContextMenu();
95 | protected:
96 | void contextMenuEvent ( QContextMenuEvent * e );
97 | bool event( QEvent *event );
98 | private:
99 | XmlHighlighter *highlight;
100 | signals:
101 | public slots:
102 | void Syntaxcheck();
103 | void setPlainText( const QString txt );
104 | };
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 | #endif // XMLHIGHLIGHTER_H
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/support/qmailpluginmanager.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 | ** Contact: Qt Software Information (qt-info@nokia.com)
5 | **
6 | ** This file is part of the Qt Messaging Framework.
7 | **
8 | ** $QT_BEGIN_LICENSE:LGPL$
9 | ** No Commercial Usage
10 | ** This file contains pre-release code and may not be distributed.
11 | ** You may use this file in accordance with the terms and conditions
12 | ** contained in the either Technology Preview License Agreement or the
13 | ** Beta Release License Agreement.
14 | **
15 | ** GNU Lesser General Public License Usage
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
17 | ** General Public License version 2.1 as published by the Free Software
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
19 | ** packaging of this file. Please review the following information to
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 | **
23 | ** In addition, as a special exception, Nokia gives you certain
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26 | ** package.
27 | **
28 | ** GNU General Public License Usage
29 | ** Alternatively, this file may be used under the terms of the GNU
30 | ** General Public License version 3.0 as published by the Free Software
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
32 | ** packaging of this file. Please review the following information to
33 | ** ensure the GNU General Public License version 3.0 requirements will be
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
35 | **
36 | ** If you are unsure which license is appropriate for your use, please
37 | ** contact the sales department at qt-sales@nokia.com.
38 | ** $QT_END_LICENSE$
39 | **
40 | ****************************************************************************/
41 |
42 | #ifndef QMAILPLUGINMANAGER_H
43 | #define QMAILPLUGINMANAGER_H
44 |
45 | #include "qmailglobal.h"
46 | #include
47 | #include
48 |
49 | class QMailPluginManagerPrivate;
50 |
51 | class QTOPIAMAIL_EXPORT QMailPluginManager : public QObject
52 | {
53 | Q_OBJECT
54 |
55 | public:
56 | explicit QMailPluginManager(const QString &identifier, QObject *parent=0);
57 | ~QMailPluginManager();
58 |
59 | QStringList list() const;
60 | QObject* instance(const QString &name);
61 |
62 | private:
63 | QMailPluginManagerPrivate* d;
64 | };
65 |
66 | #endif
67 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/clientconfiguration.h:
--------------------------------------------------------------------------------
1 | /*
2 | clientconfiguration.h: Declaration of ClientConfiguration class
3 |
4 | Copyright (C) 2011 Sarab D. Mattes
5 |
6 | This file is part of omapd.
7 |
8 | omapd is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | omapd is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with omapd. If not, see .
20 | */
21 |
22 | #ifndef CLIENTCONFIGURATION_H
23 | #define CLIENTCONFIGURATION_H
24 |
25 | #include "omapdconfig.h"
26 | #include "maprequest.h"
27 |
28 | class ClientConfiguration
29 | {
30 | public:
31 | ClientConfiguration();
32 | void createBasicAuthClient(const QString& clientName, const QString& username, const QString& password, OmapdConfig::AuthzOptions authz, const QString& metadataPolicy);
33 | void createCertAuthClient(const QString& clientName, const QString& certFile, const QString& caCertFile, OmapdConfig::AuthzOptions authz, const QString& metadataPolicy);
34 | void createCAAuthClient(const QString& clientPrefix, const QString& issuingCACertFile, const QString& caCertFile, OmapdConfig::AuthzOptions authz, const QString& metadataPolicy, const QString& blacklistDir = "");
35 |
36 | const QString& metadataPolicy() const { return _metadataPolicy; }
37 | const QString& name() const { return _name; }
38 | const QString& username() const { return _username; }
39 | const QString& password() const { return _password; }
40 | const QString& certFileName() const { return _certFileName; }
41 | const QString& caCertFileName() const { return _caCertFileName; }
42 | const QString& blacklistDirectory() const { return _blacklistDirectory; }
43 | bool haveClientCert() const { return _haveClientCert; }
44 | MapRequest::AuthenticationType authType() const { return _authType; }
45 | OmapdConfig::AuthzOptions authz() const { return _authz; }
46 |
47 | private:
48 | QString _metadataPolicy;
49 | QString _username;
50 | QString _password;
51 | QString _certFileName;
52 | QString _caCertFileName;
53 | QString _blacklistDirectory;
54 | bool _haveClientCert;
55 | MapRequest::AuthenticationType _authType;
56 | OmapdConfig::AuthzOptions _authz;
57 | QString _name;
58 | };
59 |
60 | #endif // CLIENTCONFIGURATION_H
61 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/support/qcopapplicationchannel.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 | ** Contact: Qt Software Information (qt-info@nokia.com)
5 | **
6 | ** This file is part of the Qt Messaging Framework.
7 | **
8 | ** $QT_BEGIN_LICENSE:LGPL$
9 | ** No Commercial Usage
10 | ** This file contains pre-release code and may not be distributed.
11 | ** You may use this file in accordance with the terms and conditions
12 | ** contained in the either Technology Preview License Agreement or the
13 | ** Beta Release License Agreement.
14 | **
15 | ** GNU Lesser General Public License Usage
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
17 | ** General Public License version 2.1 as published by the Free Software
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
19 | ** packaging of this file. Please review the following information to
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 | **
23 | ** In addition, as a special exception, Nokia gives you certain
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26 | ** package.
27 | **
28 | ** GNU General Public License Usage
29 | ** Alternatively, this file may be used under the terms of the GNU
30 | ** General Public License version 3.0 as published by the Free Software
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
32 | ** packaging of this file. Please review the following information to
33 | ** ensure the GNU General Public License version 3.0 requirements will be
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
35 | **
36 | ** If you are unsure which license is appropriate for your use, please
37 | ** contact the sales department at qt-sales@nokia.com.
38 | ** $QT_END_LICENSE$
39 | **
40 | ****************************************************************************/
41 |
42 | #ifndef QCOPAPPLICATIONCHANNEL_H
43 | #define QCOPAPPLICATIONCHANNEL_H
44 |
45 | #include "qcopchannel.h"
46 |
47 | class QCopApplicationChannelPrivate;
48 | class QCopClient;
49 |
50 | class Q_QCOP_EXPORT QCopApplicationChannel : public QCopChannel
51 | {
52 | Q_OBJECT
53 | public:
54 | explicit QCopApplicationChannel(QObject *parent=0);
55 | virtual ~QCopApplicationChannel();
56 |
57 | bool isStartupComplete() const;
58 |
59 | Q_SIGNALS:
60 | void startupComplete();
61 |
62 | private:
63 | QCopApplicationChannelPrivate* d;
64 |
65 | friend class QCopClient;
66 | };
67 |
68 | #endif
69 |
--------------------------------------------------------------------------------
/Drupalmail/parser/parser_utils.h:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: Get Mail as search result by subject & date since imap.
3 | //
4 | // Description:
5 | // Target to having a console app to filter & get mail to insert on drupal as new node.
6 | //
7 | // Author: Peter Hohl , 19.9.2013
8 | // http://www.freeroad.ch/
9 | // Copyright: See COPYING file that comes with this distribution
10 |
11 | #ifndef PARSER_UTILS_H
12 | #define PARSER_UTILS_H
13 | #include
14 | #include "parser_config.h"
15 |
16 |
17 | namespace Utils {
18 |
19 | static const char CarriageReturn_ = '\015';
20 | static const char LineFeed_ = '\012';
21 |
22 | QString cleanDocFromChartset(const QByteArray chartset, QByteArray chunk);
23 | int dateswap(const QString format, uint unixtime);
24 | QString date_imap_format(const qint64 unixtime);
25 |
26 | QString utf8loadfromfile(const QString file);
27 |
28 | QByteArray strip_tags(QByteArray istring);
29 | QByteArray unicode_tr(QByteArray istring);
30 |
31 | QString InfoHumanSize(qint64 x);
32 |
33 | QString testDocAttachmentDir(QString file = "");
34 | QString fastmd5(const QByteArray xml);
35 | QByteArray search_byline(QByteArray chunk, QByteArray key);
36 | /// signature md5 from a mail slice & position from document
37 | QString _partmd5(const QByteArray xml, int position);
38 | //// QString token(QString str, QChar c1, QChar c2, int index);
39 | QString token(QString text, int unicode);
40 | QString token(QString text, int unicode, int endchars);
41 | QString quotecheck(QString str);
42 | /// QChar tonicode == caret "name" return name or |name| return name
43 | /// caret is unicode char separator to take inside;
44 | QByteArray token(QByteArray text, int caret, int aftercaret = 0);
45 | QString _stripcore(QString x);
46 | QByteArray _RX_resolver(const QRegExp rx, QVariant x);
47 | QString _format_string76(QString s);
48 | //// text file writteln default to UTF-8
49 | bool _write_file(const QString fullFileName, const QString chunk, QByteArray charset = QByteArray("UTF-8"));
50 | QStringList _multipart_resolver(QString x);
51 | QByteArray _reformat_html(const QByteArray in);
52 | bool _writebin_tofile(const QString xfile, const QByteArray chunk);
53 | int _distance_position(const int a, const int b);
54 | QByteArray compress_byte_gz(const QByteArray& uncompressed);
55 | QByteArray deflate_gz(const QByteArray chunk);
56 | bool gzipCheckHeader(QByteArray &content, int &pos);
57 |
58 | }
59 |
60 |
61 | namespace Filter {
62 |
63 | bool headerfilter(QString line);
64 | QString lineonPos(const QString need, QString chunk);
65 |
66 | }
67 |
68 |
69 | #endif /* PARSER_UTILS_H */
70 |
71 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/metadata.h:
--------------------------------------------------------------------------------
1 | /*
2 | metadata.h: Declaration of Meta Class
3 |
4 | Copyright (C) 2010 Sarab D. Mattes
5 |
6 | This file is part of omapd.
7 |
8 | omapd is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | omapd is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with omapd. If not, see .
20 | */
21 |
22 | #ifndef METADATA_H
23 | #define METADATA_H
24 |
25 | #include
26 | #include "omapdconfig.h"
27 |
28 | class Meta
29 | {
30 | public:
31 | enum Cardinality {
32 | SingleValue = 1,
33 | MultiValue
34 | };
35 |
36 | enum Lifetime {
37 | LifetimeSession = 1,
38 | LifetimeForever
39 | };
40 |
41 | enum PublishOperationType {
42 | PublishUpdate = 1,
43 | PublishNotify,
44 | PublishDelete
45 | };
46 |
47 | Meta(Meta::Cardinality cardinality = Meta::SingleValue,
48 | Meta::Lifetime lifetime = Meta::LifetimeSession);
49 |
50 | Meta::Cardinality cardinality() const { return _cardinality; }
51 | Meta::Lifetime lifetime() const { return _lifetime; }
52 | QString lifetimeString() const;
53 |
54 | const QString& publisherId() const { return _publisherId; }
55 | const QString& elementName() const { return _elementName; }
56 | const QString& elementNS() const { return _elementNS; }
57 | const QString& metaXML() const { return _metaXML; }
58 |
59 | void setLifetime(Meta::Lifetime lifetime) { _lifetime = lifetime; }
60 | void setPublisherId(const QString& pubId) { _publisherId = pubId; }
61 | void setElementName(const QString& elementName) { _elementName = elementName; }
62 | void setElementNS(const QString& elementNS) { _elementNS = elementNS; }
63 | void setMetaXML(const QString& metaXML) {_metaXML = metaXML; }
64 |
65 | // Two Meta objects are equal iff their elementName and namespace members are the same
66 | bool operator==(const Meta &other) const;
67 |
68 | private:
69 | Meta::Cardinality _cardinality;
70 | Meta::Lifetime _lifetime;
71 | QString _publisherId;
72 | QString _elementName;
73 | QString _elementNS;
74 | QString _metaXML;
75 | };
76 |
77 | QDebug operator<<(QDebug dbg, const Meta & meta);
78 |
79 | #endif // METADATA_H
80 |
--------------------------------------------------------------------------------
/document_editor_2/src/allconfig.h:
--------------------------------------------------------------------------------
1 | /*
2 | * File: allconfig.h
3 | * Author: pro
4 | *
5 | * Created on 24. Oktober 2013, 17:18
6 | */
7 |
8 | #ifndef ALLCONFIG_H
9 | #define ALLCONFIG_H
10 |
11 | #define _CVERSION_ \
12 | QString("V2510-")
13 |
14 | #define __TMPCACHE__ \
15 | QString("%1/.fastcache/").arg(QDir::homePath())
16 |
17 |
18 | /// bind format doc having
19 | #include "docformat/ooo/document.h"
20 | #include "docformat/ooo/converter.h"
21 | #include "docformat/ooo/styleparser.h"
22 | #include "docformat/ooo/styleinformation.h"
23 | #include "docformat/ooo/formatproperty.h"
24 | #include "tools/kzip.h"
25 | #include "tools/docmargin.h"
26 | /// bind format doc having
27 |
28 | #include
29 | #include
30 | #include
31 | #include
32 | #include
33 | #include
34 | #include
35 | #include
36 | #include
37 | #include
38 | #include
39 | #include
40 | #include
41 | #include
42 | #include
43 | #include
44 |
45 | #include
46 | #include
47 | #include
48 | #include
49 | #include
50 | #include
51 | #include
52 | #include
53 | #include
54 | #include
55 | #include
56 | #include
57 | #include
58 | #include
59 | #include
60 | #include
61 | #include
62 | #include
63 | #include
64 | #include
65 | #include
66 | #include
67 | #include
68 | #include
69 | #include
70 | #include
71 | #include
72 | #include
73 | #include
74 | #include
75 | #include
76 |
77 | #include
78 | #include
79 | #include
80 | #include
81 | #include
82 | #include
83 |
84 | #if defined _HAVEPRINTSUPPORTFLAG_
85 | /// qt5 compatible ??? //// on qmake file !!! QT += printsupport
86 | #include
87 | #include
88 | #include
89 | #include
90 | #endif
91 | #if defined _QT4PRINTERSUPPORT_
92 | /// before qt5
93 | #include
94 | #include
95 | #include
96 | #endif
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | #endif /* ALLCONFIG_H */
107 |
108 |
--------------------------------------------------------------------------------
/Drupalmail/coreapp/client_session.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: Get Mail as search result by subject & date since imap.
3 | //
4 | // Description:
5 | // Target to having a console app to filter & get mail to insert on drupal as new node.
6 | //
7 | // Author: Peter Hohl , 19.9.2013
8 | // http://www.freeroad.ch/
9 | // Copyright: See COPYING file that comes with this distribution
10 |
11 | #include "client_session.h"
12 |
13 |
14 |
15 | MailSession* MailSession::st_ = 0;
16 |
17 | MailSession* MailSession::instance() {
18 | if (st_ == 0) {
19 | st_ = new MailSession();
20 | }
21 | return st_;
22 | }
23 |
24 | bool MailSession::register_header(QString block, const int uid, bool rec) {
25 | bool validmail = false;
26 | QString Md5 = Utils::_partmd5(block.toUtf8(), uid);
27 | //// to_file = _READMAILTMPDIR_ + QString("uid-%1.eml.gz").arg(uid);
28 | QString _from = Filter::lineonPos(QString("From:"), block);
29 | QString _to = Filter::lineonPos(QString("To:"), block);
30 | QString _retp = Filter::lineonPos(QString("Return-Path:"), block);
31 | QString _cco = Filter::lineonPos(QString("Cc:"), block);
32 | c_subject = Filter::lineonPos(QString("Subject:"), block);
33 | register_mail(_from);
34 | register_mail(_to);
35 | register_mail(_cco);
36 | register_mail(_retp);
37 | QString sender = Utils::token(_from, 60, 62); // <> indide caret text
38 | QString returnsend = Utils::token(_retp, 60, 62);
39 | /////qDebug() << returnsend << " | " << sender;
40 | ////qDebug() << c_subject;
41 | if (sender == returnsend) {
42 | validmail = true;
43 | if (rec) {
44 | mailref.insert(uid, block);
45 | }
46 | c_from = sender;
47 | }
48 | return validmail;
49 | }
50 |
51 | void MailSession::register_mail(QString block) {
52 | if (!block.isEmpty()) {
53 | QStringList items = block.split(",");
54 | for (int i = 0; i < items.size(); ++i) {
55 | const QString mail = QString(items.at(i).simplified());
56 | QString imail = Utils::token(mail, 60, 62); ///
57 | ///// qDebug() << mail << " | " << imail;
58 | MailList_A << imail;
59 | }
60 | }
61 | MailList_A.removeDuplicates();
62 | }
63 |
64 | QString MailSession::File_Fromuid(const int uid ) const {
65 | QString to_file;
66 | if (_COMPRESSCACHEFILE_ == 1) {
67 | to_file = _READMAILTMPDIR_ + QString("uid-%1.eml.gz").arg(uid);
68 | } else {
69 | to_file = _READMAILTMPDIR_ + QString("uid-%1.eml").arg(uid);
70 | }
71 | return to_file;
72 | }
73 |
74 | MailSession::MailSession() {
75 | MailList_A.clear();
76 | }
77 |
78 | MailSession::~MailSession() {
79 | MailList_A.clear();
80 | delete this;
81 | st_ = 0;
82 | }
83 |
84 |
--------------------------------------------------------------------------------
/document_editor_2/src/docformat/ooo/styleinformation.h:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 | * Copyright (C) 2006 by Tobias Koenig *
3 | * *
4 | * This program is free software; you can redistribute it and/or modify *
5 | * it under the terms of the GNU General Public License as published by *
6 | * the Free Software Foundation; either version 2 of the License, or *
7 | * (at your option) any later version. *
8 | ***************************************************************************/
9 |
10 | #ifndef OOO_STYLEINFORMATION_H
11 | #define OOO_STYLEINFORMATION_H
12 |
13 | #include
14 |
15 | #include "formatproperty.h"
16 |
17 | namespace OOO {
18 |
19 | class MetaInformation
20 | {
21 | public:
22 | typedef QList List;
23 |
24 | MetaInformation( const QString &key, const QString &value, const QString &title );
25 |
26 | QString key() const;
27 | QString value() const;
28 | QString title() const;
29 |
30 | private:
31 | QString mKey;
32 | QString mValue;
33 | QString mTitle;
34 | };
35 |
36 | class StyleInformation
37 | {
38 | public:
39 | StyleInformation();
40 | ~StyleInformation();
41 |
42 | void addFontProperty( const QString &name, const FontFormatProperty &property );
43 | FontFormatProperty fontProperty( const QString &name ) const;
44 |
45 | void addStyleProperty( const QString &name, const StyleFormatProperty &property );
46 | StyleFormatProperty styleProperty( const QString &name ) const;
47 |
48 | void addPageProperty( const QString &name, const PageFormatProperty &property );
49 | PageFormatProperty pageProperty( const QString &name ) const;
50 |
51 | void addListProperty( const QString &name, const ListFormatProperty &property );
52 | ListFormatProperty listProperty( const QString &name ) const;
53 |
54 | void addMasterLayout( const QString &name, const QString &layoutName );
55 | QString masterLayout( const QString &name );
56 | void setMasterPageName( const QString &name );
57 | QString masterPageName() const;
58 |
59 | void addMetaInformation( const QString &key, const QString &value, const QString &title );
60 | MetaInformation::List metaInformation() const;
61 |
62 | void dump() const;
63 |
64 | private:
65 | QMap mFontProperties;
66 | QMap mStyleProperties;
67 | QMap mPageProperties;
68 | QMap mListProperties;
69 | QMap mMasterLayouts;
70 | MetaInformation::List mMetaInformation;
71 | QString mMasterPageName;
72 | };
73 |
74 | }
75 |
76 | #endif
77 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/support/qcopserver.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 | ** Contact: Qt Software Information (qt-info@nokia.com)
5 | **
6 | ** This file is part of the Qt Messaging Framework.
7 | **
8 | ** $QT_BEGIN_LICENSE:LGPL$
9 | ** No Commercial Usage
10 | ** This file contains pre-release code and may not be distributed.
11 | ** You may use this file in accordance with the terms and conditions
12 | ** contained in the either Technology Preview License Agreement or the
13 | ** Beta Release License Agreement.
14 | **
15 | ** GNU Lesser General Public License Usage
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
17 | ** General Public License version 2.1 as published by the Free Software
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
19 | ** packaging of this file. Please review the following information to
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 | **
23 | ** In addition, as a special exception, Nokia gives you certain
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26 | ** package.
27 | **
28 | ** GNU General Public License Usage
29 | ** Alternatively, this file may be used under the terms of the GNU
30 | ** General Public License version 3.0 as published by the Free Software
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
32 | ** packaging of this file. Please review the following information to
33 | ** ensure the GNU General Public License version 3.0 requirements will be
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
35 | **
36 | ** If you are unsure which license is appropriate for your use, please
37 | ** contact the sales department at qt-sales@nokia.com.
38 | ** $QT_END_LICENSE$
39 | **
40 | ****************************************************************************/
41 |
42 | #ifndef QCOPSERVER_H
43 | #define QCOPSERVER_H
44 |
45 | #include
46 |
47 | #if !defined(Q_QCOP_EXPORT)
48 | #if defined(QT_BUILD_QCOP_LIB)
49 | #define Q_QCOP_EXPORT Q_DECL_EXPORT
50 | #else
51 | #define Q_QCOP_EXPORT Q_DECL_IMPORT
52 | #endif
53 | #endif
54 |
55 | class QCopServerPrivate;
56 | class QCopClient;
57 |
58 | class Q_QCOP_EXPORT QCopServer : public QObject
59 | {
60 | Q_OBJECT
61 | public:
62 | QCopServer(QObject *parent = 0);
63 | ~QCopServer();
64 |
65 | protected:
66 | virtual qint64 activateApplication(const QString& name);
67 | void applicationExited(qint64 pid);
68 |
69 | private:
70 | QCopServerPrivate *d;
71 |
72 | friend class QCopServerPrivate;
73 | friend class QCopClient;
74 | };
75 |
76 | #endif
77 |
--------------------------------------------------------------------------------
/tidylib/pprint.h:
--------------------------------------------------------------------------------
1 | #ifndef __PPRINT_H__
2 | #define __PPRINT_H__
3 |
4 | /* pprint.h -- pretty print parse tree
5 |
6 | (c) 1998-2005 (W3C) MIT, ERCIM, Keio University
7 | See tidy.h for the copyright notice.
8 |
9 | CVS Info:
10 | $Author: arnaud02 $
11 | $Date: 2005/10/31 16:31:35 $
12 | $Revision: 1.5 $
13 |
14 | */
15 |
16 | #include "forward.h"
17 |
18 | /*
19 | Block-level and unknown elements are printed on
20 | new lines and their contents indented 2 spaces
21 |
22 | Inline elements are printed inline.
23 |
24 | Inline content is wrapped on spaces (except in
25 | attribute values or preformatted text, after
26 | start tags and before end tags
27 | */
28 |
29 | #define NORMAL 0u
30 | #define PREFORMATTED 1u
31 | #define COMMENT 2u
32 | #define ATTRIBVALUE 4u
33 | #define NOWRAP 8u
34 | #define CDATA 16u
35 |
36 |
37 | /* The pretty printer keeps at most two lines of text in the
38 | ** buffer before flushing output. We need to capture the
39 | ** indent state (indent level) at the _beginning_ of _each_
40 | ** line, not the end of just the second line.
41 | **
42 | ** We must also keep track "In Attribute" and "In String"
43 | ** states at the _end_ of each line,
44 | */
45 |
46 | typedef struct _TidyIndent
47 | {
48 | int spaces;
49 | int attrValStart;
50 | int attrStringStart;
51 | } TidyIndent;
52 |
53 | typedef struct _TidyPrintImpl
54 | {
55 | uint *linebuf;
56 | uint lbufsize;
57 | uint linelen;
58 | uint wraphere;
59 | uint linecount;
60 |
61 | uint ixInd;
62 | TidyIndent indent[2]; /* Two lines worth of indent state */
63 |
64 | } TidyPrintImpl;
65 |
66 |
67 | #if SUPPORT_ASIAN_ENCODINGS
68 | /* #431953 - start RJ Wraplen adjusted for smooth international ride */
69 | uint CWrapLen( TidyDocImpl* doc, uint ind );
70 | #endif
71 |
72 | void InitPrintBuf( TidyDocImpl* doc );
73 | void FreePrintBuf( TidyDocImpl* doc );
74 |
75 | void PFlushLine( TidyDocImpl* doc, uint indent );
76 | void PCondFlushLine( TidyDocImpl* doc, uint indent );
77 |
78 | void PPrintScriptStyle( TidyDocImpl* doc, uint mode, uint indent, Node* node );
79 |
80 | /* print just the content of the body element.
81 | ** useful when you want to reuse material from
82 | ** other documents.
83 | **
84 | ** -- Sebastiano Vigna
85 | */
86 |
87 | void PrintPreamble( TidyDocImpl* doc ); /* Between these 3, */
88 | void PrintBody( TidyDocImpl* doc ); /* you can print an entire document */
89 | void PrintPostamble( TidyDocImpl* doc ); /* or you can substitute another */
90 | /* node as body using PPrintTree() */
91 |
92 | void PPrintTree( TidyDocImpl* doc, uint mode, uint indent, Node *node );
93 |
94 | void PPrintXMLTree( TidyDocImpl* doc, uint mode, uint indent, Node *node );
95 |
96 |
97 | #endif /* __PPRINT_H__ */
98 |
--------------------------------------------------------------------------------
/document_editor_2/src/test.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleDocumentTypes
8 |
9 |
10 | CFBundleTypeExtensions
11 |
12 | fop
13 |
14 | CFBundleTypeIconFile
15 | ODTicon.icns
16 | CFBundleTypeMIMETypes
17 |
18 | text/plain
19 | text/plain utf-8
20 |
21 | CFBundleTypeName
22 | Text File
23 | CFBundleTypeRole
24 | Editor
25 | LSIsAppleDefaultForType
26 |
27 |
28 |
29 | CFBundleTypeExtensions
30 |
31 | odt
32 | html
33 | txt
34 |
35 | CFBundleTypeIconFile
36 | ODTicon.icns
37 | CFBundleTypeMIMETypes
38 |
39 | application/vnd.oasis.opendocument.text
40 | text/html
41 | text/plain
42 | text/plain utf-8
43 |
44 | CFBundleTypeName
45 | Text File
46 | CFBundleTypeRole
47 | Editor
48 | LSIsAppleDefaultForType
49 |
50 |
51 |
52 | CFBundleExecutable
53 | @EXECUTABLE@
54 | CFBundleGetInfoString
55 | @EXECUTABLE@, 0.4.5 2013 - PPK-Webprogramm
56 | CFBundleIconFile
57 | ODTicon.icns
58 | CFBundleIdentifier
59 | freeroad.ch
60 | CFBundleName
61 | @EXECUTABLE@
62 | CFBundlePackageType
63 | APPL
64 | CFBundleShortVersionString
65 | 1.4
66 | CFBundleSignature
67 | !Rch
68 |
69 |
--------------------------------------------------------------------------------
/document_editor_2/src/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleDocumentTypes
8 |
9 |
10 | CFBundleTypeExtensions
11 |
12 | odt
13 |
14 | CFBundleTypeIconFile
15 | ODTicon.icns
16 | CFBundleTypeMIMETypes
17 |
18 | text/plain
19 | text/plain utf-8
20 |
21 | CFBundleTypeName
22 | Text File
23 | CFBundleTypeRole
24 | Editor
25 | LSIsAppleDefaultForType
26 |
27 |
28 |
29 | CFBundleTypeExtensions
30 |
31 | odt
32 | html
33 | txt
34 |
35 | CFBundleTypeIconFile
36 | ODTicon.icns
37 | CFBundleTypeMIMETypes
38 |
39 | application/vnd.oasis.opendocument.text
40 | text/html
41 | text/plain
42 | text/plain utf-8
43 |
44 | CFBundleTypeName
45 | Text File
46 | CFBundleTypeRole
47 | Editor
48 | LSIsAppleDefaultForType
49 |
50 |
51 |
52 | CFBundleExecutable
53 | @EXECUTABLE@
54 | CFBundleGetInfoString
55 | @EXECUTABLE@, 0.4.5 2013 - PPK-Webprogramm
56 | CFBundleIconFile
57 | ODTicon.icns
58 | CFBundleIdentifier
59 | freeroad.ch
60 | CFBundleName
61 | @EXECUTABLE@
62 | CFBundlePackageType
63 | APPL
64 | CFBundleShortVersionString
65 | 1.4
66 | CFBundleSignature
67 | !Rch
68 |
69 |
--------------------------------------------------------------------------------
/GmailHand/lib/omapd/mapclient.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | mapclient.cpp: Implementation of MapClient class
3 |
4 | Copyright (C) 2011 Sarab D. Mattes
5 |
6 | This file is part of omapd.
7 |
8 | omapd is free software: you can redistribute it and/or modify
9 | it under the terms of the GNU General Public License as published by
10 | the Free Software Foundation, either version 3 of the License, or
11 | (at your option) any later version.
12 |
13 | omapd is distributed in the hope that it will be useful,
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 | GNU General Public License for more details.
17 |
18 | You should have received a copy of the GNU General Public License
19 | along with omapd. If not, see .
20 | */
21 |
22 | #include "mapclient.h"
23 |
24 | MapClient::MapClient()
25 | {
26 | _authType = MapRequest::AuthNone;
27 | _authz = OmapdConfig::DenyAll;
28 | _hasActiveSSRC = false;
29 | _hasActiveARC = false;
30 | _hasActivePoll = false;
31 | }
32 |
33 | MapClient::MapClient(const QString& authToken, MapRequest::AuthenticationType authType, OmapdConfig::AuthzOptions authz, const QString& pubId, const QString& metadataPolicy)
34 | {
35 | _hasActiveSSRC = false;
36 | _hasActiveARC = false;
37 | _hasActivePoll = false;
38 | _authToken = authToken;
39 | _authType = authType;
40 | _authz = authz;
41 | _pubId = pubId;
42 | _metadataPolicy = metadataPolicy;
43 | }
44 |
45 | MapClient::~MapClient()
46 | {
47 | clearSubscriptionList();
48 | }
49 |
50 | void MapClient::clearSubscriptionList()
51 | {
52 | QListIterator it(_subscriptionList);
53 | while(it.hasNext())
54 | {
55 | delete it.next();
56 | }
57 | _subscriptionList.clear();
58 | }
59 |
60 | void MapClient::insertSubscription(Subscription* sub)
61 | {
62 | // we need to check if a subscription with this name
63 | // exists already and replace it with the new one if found
64 | QMutableListIterator it(_subscriptionList);
65 | while(it.hasNext())
66 | {
67 | Subscription* s = it.next();
68 | if(*s == *sub)
69 | {
70 | delete s;
71 | it.setValue(sub);
72 | return;
73 | }
74 | }
75 |
76 | // otherwise just add the new one:
77 | _subscriptionList << sub;
78 |
79 | }
80 |
81 | void MapClient::removeSubscription(const QString& name)
82 | {
83 | // we need to check if a subscription with this name
84 | // exists already and replace it with the new one if found
85 | QMutableListIterator it(_subscriptionList);
86 | while(it.hasNext())
87 | {
88 | Subscription* s = it.next();
89 | if(s->_name == name)
90 | {
91 | delete s;
92 | it.remove();
93 | return;
94 | }
95 | }
96 | }
97 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/qmailmessagelistmodel.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 | ** Contact: Qt Software Information (qt-info@nokia.com)
5 | **
6 | ** This file is part of the Qt Messaging Framework.
7 | **
8 | ** $QT_BEGIN_LICENSE:LGPL$
9 | ** No Commercial Usage
10 | ** This file contains pre-release code and may not be distributed.
11 | ** You may use this file in accordance with the terms and conditions
12 | ** contained in the either Technology Preview License Agreement or the
13 | ** Beta Release License Agreement.
14 | **
15 | ** GNU Lesser General Public License Usage
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
17 | ** General Public License version 2.1 as published by the Free Software
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
19 | ** packaging of this file. Please review the following information to
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 | **
23 | ** In addition, as a special exception, Nokia gives you certain
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26 | ** package.
27 | **
28 | ** GNU General Public License Usage
29 | ** Alternatively, this file may be used under the terms of the GNU
30 | ** General Public License version 3.0 as published by the Free Software
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
32 | ** packaging of this file. Please review the following information to
33 | ** ensure the GNU General Public License version 3.0 requirements will be
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
35 | **
36 | ** If you are unsure which license is appropriate for your use, please
37 | ** contact the sales department at qt-sales@nokia.com.
38 | ** $QT_END_LICENSE$
39 | **
40 | ****************************************************************************/
41 |
42 | #ifndef QMAILMESSAGELISTMODEL_H
43 | #define QMAILMESSAGELISTMODEL_H
44 |
45 | #include "qmailmessagemodelbase.h"
46 |
47 |
48 | class QMailMessageListModelPrivate;
49 |
50 | class QTOPIAMAIL_EXPORT QMailMessageListModel : public QMailMessageModelBase
51 | {
52 | Q_OBJECT
53 |
54 | public:
55 | QMailMessageListModel(QObject* parent = 0);
56 | virtual ~QMailMessageListModel();
57 |
58 | QModelIndex index(int row, int column = 0, const QModelIndex &idx = QModelIndex()) const;
59 | QModelIndex parent(const QModelIndex &idx) const;
60 |
61 | QModelIndex generateIndex(int row, int column, void *ptr);
62 |
63 | protected:
64 | QMailMessageModelImplementation *impl();
65 | const QMailMessageModelImplementation *impl() const;
66 |
67 | private:
68 | QMailMessageListModelPrivate* d;
69 | };
70 |
71 | #endif
72 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/qprivateimplementation.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 | ** Contact: Qt Software Information (qt-info@nokia.com)
5 | **
6 | ** This file is part of the Qt Messaging Framework.
7 | **
8 | ** $QT_BEGIN_LICENSE:LGPL$
9 | ** No Commercial Usage
10 | ** This file contains pre-release code and may not be distributed.
11 | ** You may use this file in accordance with the terms and conditions
12 | ** contained in the either Technology Preview License Agreement or the
13 | ** Beta Release License Agreement.
14 | **
15 | ** GNU Lesser General Public License Usage
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
17 | ** General Public License version 2.1 as published by the Free Software
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
19 | ** packaging of this file. Please review the following information to
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 | **
23 | ** In addition, as a special exception, Nokia gives you certain
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26 | ** package.
27 | **
28 | ** GNU General Public License Usage
29 | ** Alternatively, this file may be used under the terms of the GNU
30 | ** General Public License version 3.0 as published by the Free Software
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
32 | ** packaging of this file. Please review the following information to
33 | ** ensure the GNU General Public License version 3.0 requirements will be
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
35 | **
36 | ** If you are unsure which license is appropriate for your use, please
37 | ** contact the sales department at qt-sales@nokia.com.
38 | ** $QT_END_LICENSE$
39 | **
40 | ****************************************************************************/
41 |
42 | /*!
43 | \class QPrivateImplementationBase
44 |
45 | \brief The QPrivateImplementationBase provides a base class for implicitly
46 | shared implementation classes.
47 | \ingroup messaginglibrary
48 | \internal
49 | \sa QSharedData
50 | */
51 |
52 | /*!
53 | \class QPrivateImplementationPointer
54 |
55 | \brief The QPrivateImplementationPointer is a smart pointer which manages
56 | implicit sharing of classes derived from QPrivateImplementationBase.
57 | \ingroup messaginglibrary
58 | \internal
59 | \sa QSharedDataPointer
60 | */
61 |
62 | /*!
63 | \class QPrivatelyImplemented
64 |
65 | \brief The QPrivatelyImplemented class template allows a class to delegate
66 | its implementation to an incomplete template parameter class.
67 | \ingroup messaginglibrary
68 | \internal
69 | */
70 |
71 |
--------------------------------------------------------------------------------
/GmailHand/parser_eml.h:
--------------------------------------------------------------------------------
1 | //
2 | // C++ Implementation: Get Mail as search result by subject & date since imap.
3 | //
4 | // Description:
5 | // Target to having a console app to filter & get mail to insert on drupal as new node.
6 | //
7 | // Author: Peter Hohl , 19.9.2013
8 | // http://www.freeroad.ch/
9 | // Copyright: See COPYING file that comes with this distribution
10 |
11 | #ifndef PARSER_EML_H
12 | #define PARSER_EML_H
13 |
14 | #include "parser_config.h"
15 |
16 |
17 |
18 |
19 | namespace ReadMail {
20 |
21 | /// class to handle eml file on full email format
22 | /// use NetBean to follow function and class by CTRL window or apple key and click
23 |
24 | class Parser {
25 | public:
26 | Parser(const QString file);
27 | /* return all header field wo find in init_Header() */
28 | QString HeaderField(const QString name) const;
29 | ///// utf8 iso xx preaction from base64 or quoteprintable
30 | QString Makedecoder(const QByteArray charset , QByteArray chunk , int preaction = 0 ) const;
31 | /// attachmend inline image ecc..
32 | // multipart/alternative 200
33 | // multipart/signed 201
34 | // multipart/related 202
35 | // multipart/digest 203
36 | // multipart/mixed 204
37 | /// text only 100
38 | // unknow 404
39 |
40 | /// get a list of all boundary= key from mail
41 | /// not parse after Meta header --- if mail attachment having
42 | /// a ***.eml message/rfc822 file format...
43 | /// maximum boundary= is 2x on multipart/mixed && multipart/alternative
44 | QStringList GetMailKey( bool full = false ) const;
45 | ~Parser();
46 | ///// DocSlice MagicPair;
47 | private:
48 | void init_Header();
49 | int Get_MultipartMime( ICmail& qmail) const;
50 | //// get the text plain and write to ICmail
51 | int CaptureText( ICmail& qmail , const int mode ) const;
52 | /// return exact lenght from part next body to extract doc like apple slice
53 | /// hear on slice document saved all on struct ICmail && list of attachment on Qmailf
54 | /// a class to contain all inline element or attachment on mime_standard.h
55 | DocSlice SliceBodyPart( const int from , const int offset , ICmail& qmail ) const;
56 | /* search by key word to separate correct mail header and body part
57 | many mail having to long null line or to many new line to the next boundary section */
58 | bool Header_Code_Grep(const QString line ) const;
59 | void RangePosition( QByteArray *in , int pos , int range );
60 | int wi_line;
61 | int MAGIC_POSITION;
62 | QString Mimelist;
63 | QByteArray Mheader;
64 | QByteArray Mfull;
65 | QByteArray Mfull_A;
66 | ReadMail::StreamMail *_d;
67 | Mail_Field_Format field_h;
68 |
69 | };
70 |
71 |
72 | }
73 |
74 | #endif /* PARSER_EML_H */
75 |
76 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/qmailmessagethreadedmodel.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 | ** Contact: Qt Software Information (qt-info@nokia.com)
5 | **
6 | ** This file is part of the Qt Messaging Framework.
7 | **
8 | ** $QT_BEGIN_LICENSE:LGPL$
9 | ** No Commercial Usage
10 | ** This file contains pre-release code and may not be distributed.
11 | ** You may use this file in accordance with the terms and conditions
12 | ** contained in the either Technology Preview License Agreement or the
13 | ** Beta Release License Agreement.
14 | **
15 | ** GNU Lesser General Public License Usage
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
17 | ** General Public License version 2.1 as published by the Free Software
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
19 | ** packaging of this file. Please review the following information to
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 | **
23 | ** In addition, as a special exception, Nokia gives you certain
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26 | ** package.
27 | **
28 | ** GNU General Public License Usage
29 | ** Alternatively, this file may be used under the terms of the GNU
30 | ** General Public License version 3.0 as published by the Free Software
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
32 | ** packaging of this file. Please review the following information to
33 | ** ensure the GNU General Public License version 3.0 requirements will be
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
35 | **
36 | ** If you are unsure which license is appropriate for your use, please
37 | ** contact the sales department at qt-sales@nokia.com.
38 | ** $QT_END_LICENSE$
39 | **
40 | ****************************************************************************/
41 |
42 | #ifndef QMAILMESSAGETHREADEDMODEL_H
43 | #define QMAILMESSAGETHREADEDMODEL_H
44 |
45 | #include "qmailmessagemodelbase.h"
46 |
47 |
48 | class QMailMessageThreadedModelPrivate;
49 |
50 | class QTOPIAMAIL_EXPORT QMailMessageThreadedModel : public QMailMessageModelBase
51 | {
52 | Q_OBJECT
53 |
54 | public:
55 | QMailMessageThreadedModel(QObject* parent = 0);
56 | virtual ~QMailMessageThreadedModel();
57 |
58 | int rootRow(const QModelIndex& index) const;
59 |
60 | QModelIndex index(int row, int column = 0, const QModelIndex &idx = QModelIndex()) const;
61 | QModelIndex parent(const QModelIndex &idx) const;
62 |
63 | QModelIndex generateIndex(int row, int column, void *ptr);
64 |
65 | protected:
66 | QMailMessageModelImplementation *impl();
67 | const QMailMessageModelImplementation *impl() const;
68 |
69 | private:
70 | QMailMessageThreadedModelPrivate* d;
71 | };
72 |
73 | #endif
74 |
--------------------------------------------------------------------------------
/GmailHand/lib/qtopiamail/qmailfoldersortkey_p.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 | ** Contact: Qt Software Information (qt-info@nokia.com)
5 | **
6 | ** This file is part of the Qt Messaging Framework.
7 | **
8 | ** $QT_BEGIN_LICENSE:LGPL$
9 | ** No Commercial Usage
10 | ** This file contains pre-release code and may not be distributed.
11 | ** You may use this file in accordance with the terms and conditions
12 | ** contained in the either Technology Preview License Agreement or the
13 | ** Beta Release License Agreement.
14 | **
15 | ** GNU Lesser General Public License Usage
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
17 | ** General Public License version 2.1 as published by the Free Software
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
19 | ** packaging of this file. Please review the following information to
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 | **
23 | ** In addition, as a special exception, Nokia gives you certain
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26 | ** package.
27 | **
28 | ** GNU General Public License Usage
29 | ** Alternatively, this file may be used under the terms of the GNU
30 | ** General Public License version 3.0 as published by the Free Software
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
32 | ** packaging of this file. Please review the following information to
33 | ** ensure the GNU General Public License version 3.0 requirements will be
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
35 | **
36 | ** If you are unsure which license is appropriate for your use, please
37 | ** contact the sales department at qt-sales@nokia.com.
38 | ** $QT_END_LICENSE$
39 | **
40 | ****************************************************************************/
41 |
42 | #ifndef QMAILFOLDERSORTKEY_P_H
43 | #define QMAILFOLDERSORTKEY_P_H
44 |
45 | //
46 | // W A R N I N G
47 | // -------------
48 | //
49 | // This file is not part of the Qt Extended API. It exists purely as an
50 | // implementation detail. This header file may change from version to
51 | // version without notice, or even be removed.
52 | //
53 | // We mean it.
54 | //
55 |
56 | #include "qmailfoldersortkey.h"
57 | #include "mailsortkeyimpl_p.h"
58 |
59 | class QMailFolderSortKeyPrivate : public MailSortKeyImpl
60 | {
61 | public:
62 | QMailFolderSortKeyPrivate() : MailSortKeyImpl() {};
63 | QMailFolderSortKeyPrivate(QMailFolderSortKey::Property p, Qt::SortOrder o, quint64 m) : MailSortKeyImpl