From: stephan b. <sg...@us...> - 2004-12-30 20:59:39
|
Update of /cvsroot/pclasses/pclasses2/src/App In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12446/src/App Added Files: AppDetails.cpp Makefile.toc Log Message: egg. Compiles but is untested. --- NEW FILE: AppDetails.cpp --- #include <pclasses/App/AppDetails.h> namespace P { namespace App { struct AppDetails::AppDetailsHolder { ::P::Unicode::String name; ::P::Unicode::String about; ::P::Unicode::String license; ::P::App::AppDetails::DetailList authors; }; using ::P::Unicode::String; AppDetails::AppDetails() throw() : m_detail(0) { } AppDetails::AppDetails( const String & name ) throw() : m_detail(0) { this->details()->name = name; } AppDetails::~AppDetails() throw() { delete this->m_detail; } AppDetails::AppDetailsHolder * AppDetails::details() const { if( ! this->m_detail ) { this->m_detail = new AppDetails::AppDetailsHolder; } return this->m_detail; } AppDetails::DetailList & AppDetails::getAuthors() throw() { return this->details()->authors; } const AppDetails::DetailList & AppDetails::getAuthors() const throw() { return this->details()->authors; } const String & AppDetails::getLicenseText() const throw() { return this->details()->license; } void AppDetails::setLicenseText( const String & l ) throw() { this->details()->license = l; } const String & AppDetails::getName() const throw() { return this->details()->name; } void AppDetails::setName( const String & n ) throw() { this->details()->name = n; } const String & AppDetails::getAboutText() const throw() { return this->details()->about; } void AppDetails::setAboutText( const String & n ) throw() { this->details()->about = n; } }} // namespace P::App --- NEW FILE: Makefile.toc --- #!/usr/bin/make -f include toc.make SOURCES = \ $(wildcard *.cpp) HEADERS = $(wildcard *.h) OBJECTS = $(patsubst %.cpp,%.o,$(SOURCES)) INSTALL_PACKAGE_HEADERS = $(HEADERS) INSTALL_PACKAGE_HEADERS_DEST = $(INSTALL_PACKAGE_HEADERS_BASE)/App DIST_FILES += $(SOURCES) $(HEADERS) #SYMLINK_HEADERS = $(INSTALL_PACKAGE_HEADERS) #SYMLINK_HEADERS_DEST = $(top_srcdir)/include/pclasses/App #include $(TOC_MAKESDIR)/SYMLINK_HEADERS.make LIBNAME = lib$(LIBPAPP_BASENAME) SHARED_LIBS = $(LIBNAME) SHARED_LIBS_LDADD = $(P_BACKLINK_LDADD) $(LIBNAME)_so_LDADD = $(LIBPS11N_LDADD) $(LIBNAME)_so_OBJECTS = $(OBJECTS) $(SUBDIR_OBJECTS) $(LIBNAME)_so_VERSION = $(PACKAGE_VERSION) include $(TOC_MAKESDIR)/SHARED_LIBS.make #BIN_PROGRAMS = test #test_bin_OBJECTS = test.o $(LIBNAME).so #test_bin_LDADD = $(LIBP_TESTS_LDADD) $(LIBPSYSTEM_CLIENT_LDADD) $(LIBPUTIL_CLIENT_LDADD) #include $(TOC_MAKESDIR)/BIN_PROGRAMS.make all: SHARED_LIBS # SYMLINK_HEADERS # BIN_PROGRAMS |