parent
2efc9f9cf4
commit
4c357c392d
@ -0,0 +1,80 @@
|
||||
############################################
|
||||
# #
|
||||
# Improvements and feedbacks are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
############################################
|
||||
|
||||
|
||||
cmake_minimum_required( VERSION 2.8 )
|
||||
|
||||
|
||||
#### general package setup
|
||||
|
||||
project( kshowmail )
|
||||
set( VERSION R14.1.0 )
|
||||
|
||||
|
||||
#### include essential cmake modules
|
||||
|
||||
include( FindPkgConfig )
|
||||
include( CheckFunctionExists )
|
||||
include( CheckSymbolExists )
|
||||
include( CheckIncludeFile )
|
||||
include( CheckLibraryExists )
|
||||
include( CheckCSourceCompiles )
|
||||
include( CheckCXXSourceCompiles )
|
||||
|
||||
|
||||
#### include our cmake modules
|
||||
|
||||
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
|
||||
include( TDEMacros )
|
||||
|
||||
|
||||
##### setup install paths
|
||||
|
||||
include( TDESetupPaths )
|
||||
tde_setup_paths( )
|
||||
|
||||
|
||||
##### optional stuff
|
||||
|
||||
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
|
||||
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
|
||||
|
||||
|
||||
##### user requested modules
|
||||
|
||||
option( BUILD_ALL "Build all" ON )
|
||||
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
|
||||
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
|
||||
|
||||
|
||||
##### configure checks
|
||||
|
||||
include( ConfigureChecks.cmake )
|
||||
|
||||
|
||||
###### global compiler settings
|
||||
|
||||
add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST )
|
||||
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
|
||||
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||
|
||||
|
||||
##### directories
|
||||
|
||||
add_subdirectory( pics )
|
||||
add_subdirectory( sounds )
|
||||
add_subdirectory( ${PROJECT_NAME} )
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
||||
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
|
||||
|
||||
|
||||
##### write configure files
|
||||
|
||||
configure_file( config.h.cmake config.h @ONLY )
|
@ -0,0 +1,35 @@
|
||||
###########################################
|
||||
# #
|
||||
# Improvements and feedback are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
###########################################
|
||||
|
||||
# required stuff
|
||||
find_package( TQt )
|
||||
find_package( TDE )
|
||||
|
||||
tde_setup_architecture_flags( )
|
||||
|
||||
include(TestBigEndian)
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
|
||||
tde_setup_largefiles( )
|
||||
|
||||
|
||||
##### check for gcc visibility support
|
||||
|
||||
if( WITH_GCC_VISIBILITY )
|
||||
tde_setup_gcc_visibility( )
|
||||
endif( WITH_GCC_VISIBILITY )
|
||||
|
||||
|
||||
##### check for mimelib1 support
|
||||
|
||||
find_path( MIMELIB1_INCLUDE_DIR NAMES "mimelib/mimepp.h" )
|
||||
find_library( MIMELIB1_LIBRARIES NAMES mimelib )
|
||||
|
||||
if( (NOT MIMELIB1_INCLUDE_DIR) OR (NOT MIMELIB1_LIBRARIES) )
|
||||
tde_message_fatal( "mimelib1 is required but either the headers or the library have not been found on your system" )
|
||||
endif( (NOT MIMELIB1_INCLUDE_DIR) OR (NOT MIMELIB1_LIBRARIES) )
|
@ -0,0 +1,8 @@
|
||||
#define VERSION "@VERSION@"
|
||||
|
||||
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
|
||||
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
@ -0,0 +1,9 @@
|
||||
add_subdirectory( en )
|
||||
add_subdirectory( de )
|
||||
add_subdirectory( es )
|
||||
add_subdirectory( sv )
|
||||
add_subdirectory( fr )
|
||||
add_subdirectory( hu )
|
||||
add_subdirectory( it )
|
||||
add_subdirectory( ru )
|
||||
add_subdirectory( man )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG de )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG es )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG fr )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG hu )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG it )
|
@ -0,0 +1,5 @@
|
||||
INSTALL(
|
||||
FILES ${PROJECT_NAME}.1
|
||||
DESTINATION ${MAN_INSTALL_DIR}/man1
|
||||
COMPONENT doc
|
||||
)
|
@ -0,0 +1,62 @@
|
||||
.TH QT: "1" "April 2007" "Qt: 3.3.7" "User Commands"
|
||||
.SH NAME
|
||||
kshowmail \- A powerful pop3 mail checker
|
||||
.SH SYNOPSIS
|
||||
.B kshowmail
|
||||
[\fIQt-options\fR] [\fITDE-options\fR] [\fIoptions\fR] [\fIaccount\fR]
|
||||
.SH DESCRIPTION
|
||||
KShowmail can be used to show mails on a POP3 server without actually
|
||||
downloading them. The headers or the complete mails can be viewed, and
|
||||
unwanted mails can be deleted. An initial and an interval timer can be set to
|
||||
check the mails periodical. KShowmail supports multiple accounts.
|
||||
.SS "Generic options:"
|
||||
.TP
|
||||
\fB\-\-help\fR
|
||||
Show help about options
|
||||
.TP
|
||||
\fB\-\-help\-qt\fR
|
||||
Show Qt specific options
|
||||
.TP
|
||||
\fB\-\-help\-tde\fR
|
||||
Show TDE specific options
|
||||
.TP
|
||||
\fB\-\-help\-all\fR
|
||||
Show all options
|
||||
.TP
|
||||
\fB\-\-author\fR
|
||||
Show author information
|
||||
.TP
|
||||
\fB\-v\fR, \fB\-\-version\fR
|
||||
Show version information
|
||||
.TP
|
||||
\fB\-\-license\fR
|
||||
Show license information
|
||||
.TP
|
||||
\fB\-\-\fR
|
||||
End of options
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB\-r\fR, \fB\-\-refresh\fR
|
||||
Refresh messages now
|
||||
.TP
|
||||
\fB\-c\fR, \fB\-\-config\fR
|
||||
Launch configure dialog
|
||||
.SS "Arguments:"
|
||||
.TP
|
||||
account
|
||||
Select account
|
||||
.PP
|
||||
KDE: 3.5.6
|
||||
KShowmail: 3.1.2
|
||||
.SH "SEE ALSO"
|
||||
The full documentation for
|
||||
.B Qt:
|
||||
is maintained as a Texinfo manual. If the
|
||||
.B info
|
||||
and
|
||||
.B Qt:
|
||||
programs are properly installed at your site, the command
|
||||
.IP
|
||||
.B info Qt:
|
||||
.PP
|
||||
should give you access to the complete manual.
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG ru )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG sv )
|
@ -0,0 +1,66 @@
|
||||
add_subdirectory( kcmconfigs )
|
||||
|
||||
include_directories(
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
${MIMELIB1_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
${TDE_LIB_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### kshowmail (executable)
|
||||
|
||||
tde_add_executable( ${PROJECT_NAME} AUTOMOC
|
||||
|
||||
SOURCES
|
||||
AlertDlg.ui
|
||||
alertdialog.cpp configelem.cpp
|
||||
configlist.cpp decodeRFC2047.cpp
|
||||
encryption.cpp filteritem.cpp
|
||||
filteritemcriteria.cpp filterlog.cpp
|
||||
filterlogentry.cpp headerfilter.cpp
|
||||
kfeedback.cpp kshowmail.cpp
|
||||
kshowmaildoc.cpp kshowmaildock.cpp
|
||||
kshowmailfeedback.cpp kshowmailview.cpp
|
||||
tdewalletaccess.cpp main.cpp
|
||||
senderlistfilter.cpp serverdialog.cpp
|
||||
showheaderdialog.cpp showlistviewitem.cpp
|
||||
showmaildialog.cpp showrecord.cpp
|
||||
showrecordelem.cpp uniqueapp.cpp
|
||||
filterlogview.cpp filterlogviewdeleteditem.cpp
|
||||
filterlogviewmoveditem.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
tdeui-shared
|
||||
tdeio-shared
|
||||
tdeutils-shared
|
||||
tdewalletclient
|
||||
${MIMELIB1_LIBRARIES}
|
||||
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### icons
|
||||
|
||||
tde_install_icons( ${PROJECT_NAME} )
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
FILES kshowmailui.rc
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
|
||||
)
|
||||
|
||||
install(
|
||||
FILES ${PROJECT_NAME}.desktop
|
||||
DESTINATION ${APPS_INSTALL_DIR}/Internet
|
||||
)
|
@ -0,0 +1,137 @@
|
||||
include_directories(
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
${TDE_LIB_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### kcm_kshowmailconfigaccounts (kpart)
|
||||
|
||||
tde_add_kpart( kcm_kshowmailconfigaccounts AUTOMOC
|
||||
|
||||
SOURCES
|
||||
configaccounts.cpp
|
||||
accountsetupitem.cpp
|
||||
accountsetupdialog.cpp
|
||||
encryption.cpp
|
||||
tdewalletaccess.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
tdeui-shared
|
||||
tdeio-shared
|
||||
tdewalletclient
|
||||
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### kcm_kshowmailconfigactions (kpart)
|
||||
|
||||
tde_add_kpart( kcm_kshowmailconfigactions AUTOMOC
|
||||
|
||||
SOURCES
|
||||
configactions.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
tdeui-shared
|
||||
tdeio-shared
|
||||
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### kcm_kshowmailconfigdisplay (kpart)
|
||||
|
||||
tde_add_kpart( kcm_kshowmailconfigdisplay AUTOMOC
|
||||
|
||||
SOURCES
|
||||
configdisplay.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
tdeui-shared
|
||||
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### kcm_kshowmailconfigfilter (kpart)
|
||||
|
||||
tde_add_kpart( kcm_kshowmailconfigfilter AUTOMOC
|
||||
|
||||
SOURCES
|
||||
configfilter.cpp
|
||||
senderlistdialog.cpp
|
||||
filtersetupitem.cpp
|
||||
filtersetupdialog.cpp
|
||||
filtercriteriawidget.cpp
|
||||
mailboxwizard.cpp
|
||||
mailboxwizardlistitem.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
tdeui-shared
|
||||
tdeio-shared
|
||||
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### kcm_kshowmailconfiggeneral (kpart)
|
||||
|
||||
tde_add_kpart( kcm_kshowmailconfiggeneral AUTOMOC
|
||||
|
||||
SOURCES
|
||||
configgeneral.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
tdeui-shared
|
||||
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### kcm_kshowmailconfiglog (kpart)
|
||||
|
||||
tde_add_kpart( kcm_kshowmailconfiglog AUTOMOC
|
||||
|
||||
SOURCES
|
||||
configlog.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
tdeui-shared
|
||||
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### kcm_kshowmailconfigspamcheck (kpart)
|
||||
|
||||
tde_add_kpart( kcm_kshowmailconfigspamcheck AUTOMOC
|
||||
|
||||
SOURCES
|
||||
configspamcheck.cpp
|
||||
mailboxwizard.cpp
|
||||
mailboxwizardlistitem.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
tdeui-shared
|
||||
tdeio-shared
|
||||
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
file( GLOB _desktops RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.desktop )
|
||||
|
||||
install(
|
||||
FILES ${_desktops}
|
||||
DESTINATION ${SERVICES_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,17 @@
|
||||
tde_install_icons( ${PROJECT_NAME} )
|
||||
|
||||
|
||||
##### other icon
|
||||
|
||||
install(
|
||||
FILES
|
||||
eraser.png
|
||||
kshowmail24.png
|
||||
kshowmail.png
|
||||
letter-closed.png
|
||||
letter-open.png
|
||||
ok.png
|
||||
tool.png
|
||||
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/pics
|
||||
)
|
@ -0,0 +1,5 @@
|
||||
file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
|
||||
|
||||
if( _srcs )
|
||||
tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
|
||||
endif( )
|
@ -0,0 +1,4 @@
|
||||
install(
|
||||
FILES neuepost.wav newmail.wav
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/sounds
|
||||
)
|
Loading…
Reference in new issue