Symbian Developer Network

View a printable version of the current page.
  Wiki > Symbian Developer Network Public Wiki > Browse Space > Labels > symbian-cpp
  Label: symbian-cpp

Content with label symbian-cpp in Symbian Developer Network Public Wiki (See content from all spaces)
Related Labels: code-snippet, code-example, panic, code-clinic

1 | 2 | 3 | Next >> (total: 23)
Code Clinic December 2008 - ASSERT yourself
Introduction When code encounters a bug it should stop executing, to highlight the problem at the point at which it occurs. Halting running code as soon as a problem is detected, rather than allowing code to continue executing, makes it easier for you to track bugs ...
Other labels: code-clinic, code-snippet, panic
Simulate D-Pad with Accelerometer
Header File: #include <RDAccelerometerObserver.h> class CRDAccelerometer; const TInt KThresholdDown = 20; const TInt KThresholdUp = 10; const TInt KThresholdRight = 15; const TInt KThresholdLeft = 15; const TInt KPadding = 2; class CMyAppView : public CCoeControl ...
Other labels: code-snippet
How to restart device progmatically
Header file: enum TSWStartupReason ; class SysStartup ; Implementation TUid uid = ; SysStartup::ShutdownAndRestart( uid, ESWNone
Other labels: code-snippet
Lightwave(Obj) file loader
See attachments
Other labels: code-snippet
Memory monitor class with AO
Header file #ifndef MEMORYMONITORH #define MEMORYMONITORH #include <e32def.h> #include <e32base.h> #include <badesca.h> #include <f32file.h> class MMemoryMonitorObserver ; class CMemoryMonitor: public CActive { public: CMemoryMonitor(MMemoryMonitorObserver& aObserver); CMemoryMonitor(); void StartL(); void StopL(); void ...
Other labels: code-snippet
Feature discovery
Feature discovery offers methods to query whether a feature is supported in the current environment. example:   TBool isIRAvailable = CFeatureDiscovery::IsFeatureSupportedL( KFeatureIdIrda ); TBool isBTAvailable = CFeatureDiscovery::IsFeatureSupportedL( KFeatureIdBt
Other labels: code-snippet
RTimer implementation
Header file #ifndef TIMERTOOLH #define TIMERTOOLH #include <E32Base.h> class MTimerToolObserver { public : enum TTimerToolEventType ; virtual void HandleTimerToolEventL(TTimerToolEventType aEventType)=0; }; class CTimerTool : public CActive ; #endif Cpp file #include <E32Base.h #include <E32Std.h ...
Other labels: code-snippet
Compress or decompress file with gzip
Compress function void CMyClass::Compress(const TDesC aFileName, TInt aCompressionMethod) { TInt compressionMethod = 0; if(aCompressionMethod == 0) compressionMethod = ZDEFAULTCOMPRESSION; else if(aCompressionMethod == 1) compressionMethod = ZNOCOMPRESSION; else if(aCompressionMethod == 2) compressionMethod = ZBESTSPEED; else if(aCompressionMethod == 3 ...
Other labels: code-snippet
Targa(tga) file loader
targa implementation please see&nbsp;3DS file loader http://developer.symbian.com/wiki/display/scode/3DSfileloadercodes. http://developer.symbian.com/wiki/pages/viewpageattachments.action?pageId=1 983
Other labels: code-snippet
3DS file loader
See attachments
Other labels: code-snippet, code-example
1 | 2 | 3 | Next >> (total: 23)