Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/PluginSettings.cpp

Issue 11276031: FRP wrappers. "Update" menu item. (Closed)
Patch Set: Created Aug. 1, 2013, 2:29 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include <Wbemidl.h> 3 #include <Wbemidl.h>
4 #include <time.h> 4 #include <time.h>
5 #include "PluginSettings.h" 5 #include "PluginSettings.h"
6 #include "PluginClient.h" 6 #include "PluginClient.h"
7 #include "PluginSystem.h" 7 #include "PluginSystem.h"
8 #ifdef SUPPORT_FILTER 8 #ifdef SUPPORT_FILTER
9 #include "PluginFilter.h" 9 #include "PluginFilter.h"
10 #endif 10 #endif
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 CString CPluginSettings::GetSubscription() 358 CString CPluginSettings::GetSubscription()
359 { 359 {
360 std::vector<SubscriptionDescription> subscriptions = CPluginClient::GetInstanc e()->GetListedSubscriptions(); 360 std::vector<SubscriptionDescription> subscriptions = CPluginClient::GetInstanc e()->GetListedSubscriptions();
361 if (subscriptions.size() > 0) 361 if (subscriptions.size() > 0)
362 return CString(subscriptions.front().url.c_str()); 362 return CString(subscriptions.front().url.c_str());
363 else 363 else
364 return CString(L""); 364 return CString(L"");
365 } 365 }
366 366
367 CString CPluginSettings::GetAppLocale()
368 {
369 return CString(CPluginClient::GetInstance()->GetAppLocale().c_str());
370 }
371
372 CString CPluginSettings::GetDocumentationLink()
373 {
374 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str());
375 }
376
367 377
368 378
369 #endif // SUPPORT_WHITELIST 379 #endif // SUPPORT_WHITELIST
OLDNEW

Powered by Google App Engine
This is Rietveld