Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » More new functions
Re: More new functions [message #18904 is a reply to message #18880] Fri, 31 October 2008 13:34 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14257
Registered: November 2005
Ultimate Member
koldo wrote on Thu, 30 October 2008 03:24

Hello all

Sorry for the delay. Now I am waiting for luzr final feedback about the structure of these functions.



class SysFolders          // Special folders
	String GetDesktop();
	String GetPrograms();
	String GetAppData();
	String GetMusic();
	String GetPictures();
	String GetVideo();
	String GetPersonal();
	String GetTemplates();
	String GetDownload();

	String GetRoot();  // New
	String GetTemp();  // New
        Possible new functions to change folders


I think these should be in App.h, as global functions appended with "Path" or "Folder".

class SysOS          // OS info. Samples after //
	String GetName();	// Windows  Linux


I am not quite sure the merit of above.

	String GetCode();	// 6.0	    2.6.8-1.523


IMO we need something more comparable there. Maybe like puttint it into int64 as 4 16-bit fields or something like that? Or maybe just introduce "CompareVersion" function?

CompareVersion("2.4.5", "2.5.2") < 0

	String GetSize();	// 64-bit   32-bit


What for?

class SysCPU          //CPU info
	String GetIdentifier();
	String GetLevel();
	String GetRevision();
	String GetArchitecture;
	String GetSpeed();
	String GetNumber();
        Possible new functions to get more details


Well, maybe... Anyway, I have a hard time imagining what are these good for beyond some fancy about box.

Still, not a bad idea to have it implemented.

class SysProcesses          //Current processes info. 
	bool Update();      // Gets processes info
	bool GetFirst(int processId, String pName);
	vool GetNext(int processId, String pName);
        Possible new functions to kill processes or change priority


Yes, class for this one... The question is whether this belongs to Core. Most apps will not need this. But perhaps yes still.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Simple app-wide "macros"
Next Topic: Grid helper
Goto Forum:
  


Current Time: Thu May 08 07:44:07 CEST 2025

Total time taken to generate the page: 0.01570 seconds