[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/office/alkimia/alkquotes/backend
From: Brian Cappello <cappellokde () gmail ! com>
Date: 2010-06-28 16:48:51
Message-ID: 20100628164851.88E77AC8E1 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1143760 by bcappello:
added sources files for a new KeysInterface plugin, not integrated yet
M +6 -3 CMakeLists.txt
A companyinfoplugin.cpp [License: LGPL]
A companyinfoplugin.h [License: LGPL]
M +4 -1 plugininterfaces.h
M +2 -6 statsmanager.cpp
M +1 -1 symbolsuggesterplugin.cpp
--- trunk/playground/office/alkimia/alkquotes/backend/CMakeLists.txt #1143759:1143760
@@ -23,6 +23,7 @@
statsmanager.cpp
downloader.cpp
symbolsuggesterplugin.cpp
+ companyinfoplugin.cpp
)
# set all QObjects to have their MOC files generated
@@ -31,8 +32,9 @@
symbolmanager.h
statsmanager.h
downloader.h
+ plugininterfaces.h
symbolsuggesterplugin.h
- plugininterfaces.h
+ companyinfoplugin.h
)
QT4_WRAP_CPP( backend_MOC_SRCs ${backend_MOC_Headers} )
@@ -43,14 +45,15 @@
ADD_LIBRARY(symbolsuggesterplugin SHARED ${backend_SRCs} ${backend_MOC_SRCs} )
+#ADD_LIBRARY(companyinfoplugin SHARED ${backend_SRCs} ${backend_MOC_SRCs} )
ADD_EXECUTABLE( quotebackend ${backend_SRCs} ${backend_MOC_SRCs} )
TARGET_LINK_LIBRARIES( quotebackend ${QT_LIBRARIES} )
INSTALL( TARGETS quotebackend ${INSTALL_TARGETS_DEFAULT_ARGS} )
-TARGET_LINK_LIBRARIES( symbolsuggesterplugin ${QT_LIBRARIES} ) #testplugin
+TARGET_LINK_LIBRARIES( symbolsuggesterplugin ${QT_LIBRARIES} ) #companyinfoplugin
-INSTALL( TARGETS symbolsuggesterplugin ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY \
DESTINATION plugins ) #testplugin +INSTALL( TARGETS symbolsuggesterplugin \
${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY DESTINATION plugins ) #companyinfoplugin
# install the adaptor xml description files so clients can build against them (is \
--prefix/interfaces the correct place for these?) FILE(GLOB adaptorfiles \
"${CMAKE_CURRENT_SOURCE_DIR}/*.xml")
--- trunk/playground/office/alkimia/alkquotes/backend/plugininterfaces.h \
#1143759:1143760 @@ -76,7 +76,10 @@
virtual bool downloadKeys( const QStringList &symbols, const QStringList &keys ) \
= 0;
signals:
- void keysDownloaded( const QString &symbol, const QStringList &keys, const \
QStringList &values ); + void keysDownloaded( const QString &pluginName,
+ const QString &symbol,
+ const QStringList &keys,
+ const QStringList &values );
};
--- trunk/playground/office/alkimia/alkquotes/backend/statsmanager.cpp \
#1143759:1143760 @@ -340,7 +340,7 @@
// check if the downloaded name contained commas
if( results.size() > keys->size() )
{
- qDebug() << "********** StatsManager::formatDownloadedResult: fixing company \
name."; + qDebug() << "StatsManager::formatDownloadedResult: fixing company \
name.";
// if so, first fix the name
int extraIndexes = 0;
@@ -449,12 +449,8 @@
// populate queryUpdate with the specific column-value pairs to update for this \
symbol for( int i = 0; i < keys->size(); ++i )
- {
- if( keys->at(i) != "symbol" )
queryUpdate += ", " + keys->at(i) + "='" + results->at(i) + '\'';
- else // the downloaded value for symbol has quotes around it, so for \
convenience, we use the internal symbol QString
- queryUpdate += ", " + keys->at(i) + "='" + symbol + '\'';
- }
+
// strip the leading comma added by i==0 above
queryUpdate.remove(commaPos,1);
--- trunk/playground/office/alkimia/alkquotes/backend/symbolsuggesterplugin.cpp \
#1143759:1143760 @@ -27,7 +27,7 @@
SymbolSuggesterPlugin::SymbolSuggesterPlugin()
{
- m_pluginName = "Yahoo Symbol Suggester Plugin";
+ m_pluginName = "SymbolSuggesterPlugin";
// m_keys.append("symbol");
// m_keys.append("name");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic