The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Centrafuse > CF SDK

Reply
 
Thread Tools Display Modes
Old 02-01-2006, 04:23 PM   #1
Variable Bitrate
 
Join Date: Apr 2004
Location: The land of polar bears and nekkid blonds
Posts: 446
My Photos: (0)
Standby/Hibernate/Resume events

Any chance of having them fired by CF rather than using the servicebase class ?

/M
Maximus is offline   Reply With Quote
Sponsored Links
Old 02-08-2006, 01:24 PM   #2
Variable Bitrate
 
Join Date: Apr 2004
Location: The land of polar bears and nekkid blonds
Posts: 446
My Photos: (0)
Maybe I was a bit unclear ?

As far as I know there isn't any way to tell when CF is shuting down and when CF have resumed (fully) from a suspend/hibernate state.
Yes, you could use the servicebase class to monitor Windows, but since CF allready handles suspend/resume it would be nice to have an CF event like "CF_Suspend" and "CF_Resumed".

Could you add this to the SDK, David, please ?

/M
Maximus is offline   Reply With Quote
Old 02-08-2006, 03:17 PM   #3
MySQL Error
 
veetid's Avatar
 
Join Date: Apr 2004
Posts: 4,955
My Photos: (0)
Quote: Originally Posted by Maximus
Maybe I was a bit unclear ?

As far as I know there isn't any way to tell when CF is shuting down and when CF have resumed (fully) from a suspend/hibernate state.
Yes, you could use the servicebase class to monitor Windows, but since CF allready handles suspend/resume it would be nice to have an CF event like "CF_Suspend" and "CF_Resumed".

Could you add this to the SDK, David, please ?

/M

It's already there... Check out CF_Event_powerModeChanged event....

david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
veetid is offline   Reply With Quote
Old 02-09-2006, 09:24 AM   #4
Variable Bitrate
 
Join Date: Apr 2004
Location: The land of polar bears and nekkid blonds
Posts: 446
My Photos: (0)
Quote: Originally Posted by veetid
It's already there... Check out CF_Event_powerModeChanged event....


Look at that !
And yet I searched... so how do I tell if it's suspending or resuming ?

/Magnus
Maximus is offline   Reply With Quote
Old 02-09-2006, 09:29 AM   #5
MySQL Error
 
veetid's Avatar
 
Join Date: Apr 2004
Posts: 4,955
My Photos: (0)
Quote: Originally Posted by Maximus
Look at that !
And yet I searched... so how do I tell if it's suspending or resuming ?

/Magnus

A parameter is passed into the function... It will let you know if the machine is suspended or resuming...

david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
veetid is offline   Reply With Quote
Old 02-09-2006, 12:03 PM   #6
Variable Bitrate
 
Join Date: Apr 2004
Location: The land of polar bears and nekkid blonds
Posts: 446
My Photos: (0)
You make me feel really stupid

And those parameters are ?

I downloaded the lastes SDK-help file a couple of days ago, and in that file I can't find those parameters.

Clicking on "PowerModeChangedEventArgs" just ends up in a 404.
"The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings."


Many thanks,

/M
Maximus is offline   Reply With Quote
Old 02-09-2006, 01:31 PM   #7
MySQL Error
 
veetid's Avatar
 
Join Date: Apr 2004
Posts: 4,955
My Photos: (0)
Quote: Originally Posted by Maximus
You make me feel really stupid

And those parameters are ?

I downloaded the lastes SDK-help file a couple of days ago, and in that file I can't find those parameters.

Clicking on "PowerModeChangedEventArgs" just ends up in a 404.
"The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings."


Many thanks,

/M

That Args class is a Microsoft one that I pass...

http://msdn2.microsoft.com/en-us/lib...eventargs.aspx

That link was suppose to link to the online msdn... There is a mode property on the class that has what you need...

http://msdn2.microsoft.com/en-us/lib...owermodes.aspx

Resume
StatusChange
Suspend

david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
veetid is offline   Reply With Quote
Old 02-09-2006, 03:20 PM   #8
Variable Bitrate
 
Join Date: Apr 2004
Location: The land of polar bears and nekkid blonds
Posts: 446
My Photos: (0)
Thanks a million, if you'd be here I'd give you a kiss

/M
Maximus is offline   Reply With Quote
Old 04-01-2006, 01:55 PM   #9
Variable Bitrate
 
Join Date: Apr 2004
Location: The land of polar bears and nekkid blonds
Posts: 446
My Photos: (0)
Sorry to bother you again, but since I'm quite new to C# I don't know if there's a problem with CF or it's just the simple fact that I'm a bit thick

When I try to assign the "powermode changed" event to a new event handler I get an error:

this.CF_Event_powerModeChanged += new EventHandler(iBUS_CF_Event_powerModeChanged);

"Cannot implicitly convert type 'System.EventHandler' to 'Microsoft.Win32.PowerModeChangedEventHandler'"

Many thanks,

/M
Maximus is offline   Reply With Quote
Old 04-01-2006, 02:36 PM   #10
MySQL Error
 
veetid's Avatar
 
Join Date: Apr 2004
Posts: 4,955
My Photos: (0)
Quote: Originally Posted by Maximus
Sorry to bother you again, but since I'm quite new to C# I don't know if there's a problem with CF or it's just the simple fact that I'm a bit thick

When I try to assign the "powermode changed" event to a new event handler I get an error:

this.CF_Event_powerModeChanged += new EventHandler(iBUS_CF_Event_powerModeChanged);

"Cannot implicitly convert type 'System.EventHandler' to 'Microsoft.Win32.PowerModeChangedEventHandler'"

Many thanks,

/M

Check out http://www.centrafuse.com/api for details on all the types... Power event mode should be declared as:

this.CF_Event_powerModeChanged += new Microsoft.Win32.PowerModeChangedEventHandler(power ModeChanged);

And the method would be like following:

private void powerModeChanged(object sender, Microsoft.Win32.PowerModeChangedEventArgs e){
}

Then you will want to check parameters on the Args e to determine whether it is a Suspend or Resume event...

david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
veetid is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Skin "TIMER" events cherrybomb Road Runner 5 01-14-2006 09:50 PM
Conncected/disconnected EVENTS? justintime CF SDK 8 11-07-2005 09:10 AM
any carputers competing in sound quality events? emdzey01 Car Audio 8 02-08-2005 07:21 AM
Triggering events based on GPS location electron GPS 5 09-16-2004 11:57 AM
Win32 Perl & iTunes program events freestyler Off Topic 0 08-08-2004 04:13 PM


All times are GMT -5. The time now is 06:45 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics