Menu [hide]
  Home
  News
  Forums
  Blogs
Google

Forum: Questions

Forums->Questions->disko-demos

lemongrace
disko-demos


HI all,

I wanno change the disko-demos something, but I don't know what function of configdb file under the application ditectory.

If can I directly modify configdb file, and how could I do? How can I finish myself disko-demos test?

Thanks for your !

Best wishes!

LD

 
on: 15.Oct 2008 [07:18 UTC] reads: 1828

Posted messages


author message
Bere
Germany
Re: disko-demos
on: 16.Oct 2008 [15:10 UTC] score: 0.00
Hi lemongrace,

> I wanno change the disko-demos something, but I don't know what function of configdb file under the application ditectory.

What do you want to change? Please describe your problem more detailed.

> If can I directly modify configdb file, and how could I do? How can I finish myself disko-demos test?

There are two ways to modify the database file. First of all you can use the sqlite binary to alter the tables. The second way is to modify the database creation script directly.

if you need more informations feel free to contact me ...

> Thanks for your !

Your welcome!

regards

bere

> HI all,
>
> I wanno change the disko-demos something, but I don't know what function of configdb file under the application ditectory.
>
> If can I directly modify configdb file, and how could I do? How can I finish myself disko-demos test?
>
> Thanks for your !
>
> Best wishes!
>
> LD


author message
lemongrace
Re: disko-demos
on: 17.Oct 2008 [06:17 UTC] score: 0.00
Hi Bere.

Now I get the way to open and close some plugin. Thanks a lot!
Yey, sqlite3 command can handle it, and the script registerme.sh can also to get it .I realy hard to use the different version of disko-lib,and disko-demos.
So, I m waiting for your release version,and deverloper tutorial.


I don't see if the database file is the only way to let the builded mainwindows know how many plugins will be displayed. And the database dependence is required, or not?

When developing the myself GUI,I need a fundamental configdb to add or reduce some plugin and something else, or I can use some ways to creat configdb file (database file)?

I am confused about the framework of disko. There is no doubt that my understanding knowledge is little .

So I need your help!

Best wishes!

LD


author message
Bere
Germany
Re: disko-demos
on: 17.Oct 2008 [07:56 UTC] score: 0.00
Hi lemongrace,

>I don't see if the database file is the only way to let the builded mainwindows >know how many plugins will be displayed.

You can use the pluginservice class, to communicate with the database (in detail with the plugin table). The following code snippet shows how you can get the active OSD plugins.

/* get all OSD plugins */

// get the configuration settings
MMSConfigData *config = new MMSConfigData();
this->source = new DataSource(config->getConfigDBDBMS(),
config->getConfigDBDatabase(),
config->getConfigDBAddress(),
config->getConfigDBPort(),
config->getConfigDBUser(),
config->getConfigDBPassword());

// connect to service
this->service = new MMSPluginService(source);

data = this->service->getOSDPlugins();

for(unsigned int i=0;igetName().c_str());
}

>And the database dependence is required, or not?

In the default installation we use the sqlite database. We cut off the sqlite3 functions in seperate files so you are able to replace the functions. Note, you shouldn't change the function names ...

> I am confused about the framework of disko. There is no doubt that my
> understanding knowledge is little .
>
> So I need your help!

Thats our job. Your welcome ...

regards

bere





Page: 1/1

Show posts: